JDK-8296609 : ☂ Fix snapping for layout container
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: graphics
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: generic
  • CPU: generic
  • Submitted: 2022-11-08
  • Updated: 2022-11-11
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
tbdUnresolved
Related Reports
Blocks :  
Blocks :  
Description
With JDK-8296330 (https://github.com/openjdk/jfx/pull/936), we will have a stable test base to test the snapping of all layout container.
The next step is to fix all broken layout container.
Another step to improve the performance is to use the snappedXXXInsets methods on all working layout containers.

Working layout container which can still be optimized by the snappedXXXInsets methods:
- HBox
- VBox
- GridPane

Non-Working layout container, where the insets needs to be correctly snapped by the snappedXXXInsets methods:
- Pane
- StackPane
- BorderPane
- TilePane
- AnchorPane
- FlowPane
Comments
VBox/HBox are also not working correctly, I've linked the JBS issue.
11-11-2022