Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8097026

[TitlePane] Fixed minimum height in TitledPane header

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8u20
    • Component/s: javafx
    • Labels:
      None
    • Environment:

      OS X 10.9, JDK8 b117

      Description

      Found that the minimum height of the header in the TitledPane is fixed to 22px. In my opinion it would be a better approach to make the height of the header dependent on the used font size and the given css padding (except there is a good reason to fix it to 22px).
      This is what it looks like in the TitledPaneSkin source:

      public class TitledPaneSkin extends LabeledSkinBase<TitledPane, TitledPaneBehavior> {
         public static final int MIN_HEADER_HEIGHT = 22;
      ...

      For a customer project we need to be able to have a smaller header height e.g. 15px because we use a smaller font there.
       

        Attachments

        1. after.jpg
          after.jpg
          30 kB
        2. before.jpg
          before.jpg
          30 kB
        3. rt34499.patch
          8 kB

          Activity

            People

            Assignee:
            jgiles Jonathan Giles
            Reporter:
            ggrunwald Gerrit Grunwald (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: