[TitlePane] Fixed minimum height in TitledPane header

XMLWordPrintable

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

      OS X 10.9, JDK8 b117

      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.
       

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

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

              Created:
              Updated:
              Resolved:
              Imported: