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

Labeled controls always return computed minHeight

    XMLWordPrintable

Details

    Description

      Currently LabelSkinBase's computeMinHeight() method executes almost the same logic as computePrefHeight(), except that it uses the graphic's minHeight instead of it's pref. The problem with this is that if the application overrides a labeled control's prefHeight (button.setPrefHeight(10)), it's min height might be greater than it's pref height and the overridden pref height will be disregarded and the app will wonder why. It might be preferable to have computeMinHeight() simply return getControl().prefHeight(w) and not worry about the Graphic min vs pref size.

      Attachments

        Issue Links

          Activity

            People

              leifs Leif Samuelsson (Inactive)
              amfowler Anne Fowler (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported: