JFXScrollPane does not allow centering of nodes (specifically JFXMasonry)
See original GitHub issueThe masonry is not centered and cannot be centered, I applied
StackPane.setAlignment(masonry, Pos.TOP_CENTER);
and
scrollpane.setAlignment(Pos.CENTER);
with no luck
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:10 (3 by maintainers)
Top Results From Across the Web
JFXScrollPane does not allow centering of nodes ... - GitHub
The masonry is not centered and cannot be centered, I applied StackPane.setAlignment(masonry, Pos.TOP_CENTER); and scrollpane.
Read more >java - How can I center a ScrollPane that wraps a fixed-sized ...
Let the StackPane fill the entire ScrollPane. The StackPane will then center the canvas for you: The stackpane will attempt to resize each ......
Read more >scroll pane can't align it's content - Oracle Communities
When a Node(group fro example) is added into a scroll pane, the scroll pane automatically align the node to the upper left corner...
Read more >The Centered Text element - HTML - MDN Web Docs - Mozilla
The HTML element is a block-level element that displays its block-level or inline contents centered horizontally within its containing ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The MasonryPane itself is centered. For me, you can’t center childs inside the MasonryPane beacause this feature seems not implemented. The first node will be always placed on the top-left corner by default.
A tricky workarround could be to increase the left margin/padding based on the number of nodes loaded in the MasonryPane.
does this feature already exist? Was solved?