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

Labeled controls always return computed minHeight

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: fx2.0
    • Fix Version/s: fx2.1
    • Component/s: javafx

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: