JDK-8119915 : Regression : size issue with many controls
  • Type: Bug
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: 8
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2013-04-11
  • Updated: 2015-06-17
  • Resolved: 2013-04-22
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 :  
Relates :  
Description
Load the attached fxml :
although the control width (pref, max, min) is USE_COMPUTED_SIZE, the width is not controlled by its container.
(height should be also checked)
This is a regression compared to 2.2, where this test case works perfectly well (i.e. the width is controlled by the container)
 Note that even if the prefWidth is bigger than the container one, the width should be the container width.
Comments
Unit test: just some cases, and check width/height sanity. Close as verified on 8.0b97
07-07-2013

This is working fine now. Thanks!
29-04-2013

Yes, RT-29008 is resolved (I just tested now). I've responded to RT-29610 to clarify if it appears to be resolved - please respond in that jira issue. Thanks.
23-04-2013

Did this issue also fix RT-29610 and RT-29008?
23-04-2013

Internal changeset: Changeset: 09430770080f Author: jgiles Date: Tue Apr 23 11:24:49 2013 +1200 URL: http://jfxsrc.us.oracle.com/javafx/8.0/scrum/controls/rt/rev/09430770080f Public changeset: Changeset: 09430770080f Author: jgiles Date: 2013-04-23 11:24 +1200 URL: http://hg.openjdk.java.net/openjfx/8/controls/rt/rev/09430770080f
22-04-2013

Resolved issue by changing SkinBase code that computes min width / height values. In JavaFX 2.x this calculation was done by deferring to the StackPane computeMin* methods. This changed in JavaFX 8.x when the class hierarchy changed and these methods became unavailable. At that point the computeMin* methods were changed to return the pref size of the control. The changeset I am pushing reintroduces proper min size calculations to SkinBase, and resolves both this issue and the issue identified in RT-24984.
22-04-2013

Attaching java code to load fxml file.
22-04-2013

Thanks, I understand better now. Will look into it ASAP.
14-04-2013

Sure. I've attached 2 screenshots: - The expected result with FX 2.2 : the controls size are controlled by the containers, so their width is the container width. - The unexpected result with FX 8 (b84) : the controls width are bigger than the containers.
12-04-2013

Are you able to provide screenshots of what you expect to see vs. what you actually see?
11-04-2013