JDK-8128852 : Labeled controls always return computed minHeight
  • Type: Bug
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: fx2.0
  • Priority: P4
  • Status: Closed
  • Resolution: Not an Issue
  • Submitted: 2011-08-17
  • Updated: 2015-06-17
  • Resolved: 2011-12-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
fx2.1Resolved
Related Reports
Relates :  
Relates :  
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.   
Comments
This is more of a general issue: what happens if a pref size value is set explicitly to be smaller than a computed min value, or larger than a computed max value? This is closed as "not an issue". If there is a more compelling use case, then we can consider reopening it for Labeled specifically, or create a new issue for the more general scope.
06-12-2011

I'm assuming Amy wanted to own this bug....but feel free to reassign if I'm wrong
17-08-2011