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

[TitlePane] Fixed minimum height in TitledPane header

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8u20
    • 8
    • javafx
    • None
    • 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

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

              Created:
              Updated:
              Resolved:
              Imported: