JDK-8120037 : TabPane min size seems to be set to pref size of the content rather than min size of the content
  • Type: Bug
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: 8
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2012-12-05
  • Updated: 2015-06-17
  • Resolved: 2013-04-23
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.
JDK 8
8Fixed
Related Reports
Relates :  
Description
Run the attached app and try to resize it. Root region background is light-red and its layoutChildren method uses layoutInArea method to leave 50 px on the right and bottom side.

Although min size for the content of the Tab is set to 100x100, it is being constrained by the content's pref size of 700x500.
Comments
Verified on 8.0b106
09-09-2013

Resolved in conjunction with RT-29641 and RT-24984.
23-04-2013

constrained.jpg shows incorrect behavior as right and bottom light-red area is less then 50px wide. This should be encountered only on smaller window sizes like 150x150 when min size of content is reached.
05-12-2012

Workaround is to directly set min size for TabPane to 100x100 (which is commented out in the code)
05-12-2012