question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JFXScrollPane does not allow centering of nodes (specifically JFXMasonry)

See original GitHub issue

2018-12-17_20-34-37

The 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
DropSnorzcommented, Jan 7, 2019

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.

jfoenix-masonrypane-sketch

A tricky workarround could be to increase the left margin/padding based on the number of nodes loaded in the MasonryPane.

0reactions
rruffercommented, Jul 19, 2020

does this feature already exist? Was solved?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found