JDK-8127816 : SplitPane new API call resizableWithParent() makes bad visual feedback
  • Type: Bug
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: fx2.1
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2012-01-23
  • Updated: 2015-06-17
  • Resolved: 2012-02-29
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 :  
Relates :  
Relates :  
Description
Using the new API call resizableWithParent() in SB, the visual feedback is not good. I seems the SplitPane content size is changed first, then reset to its initial size.
It is also noticeable in the test case described in RT-18855 (right panel), although it is more visible with a more complex content (as we have in SB).
Comments
Closing this as it is a duplicate of RT-14939
29-02-2012

This seems to be a problem with resizing a window in general. Probably a combination of glass and layout. The issue is we need to take the new size into account, layout 100% before we paint the window. The following code is enough to reproduce this bug. Button b = new Button("button"); b.setMaxSize(Double.MAX_VALUE, Double.MAX_VALUE); StackPane root = new StackPane(); root.setStyle("-fx-background-color: yellow;"); root.getChildren().add(l); Scene scene = new Scene(root, 400, 400); The bad visuals are amplified when resizing using the left edge of the window.
27-01-2012

I've no additional test case, but the attached one should be enough to see the issue. You can also try with Scene Builder to get a real usage.
24-01-2012

Is there a sample test case with more complex content that you can attach ?
23-01-2012