I am trying to work out how many Anchor Panes have been fitted onto a single row of a FlowPane
My current solution would involve simply counting the number of Anchorpanes on a single row. However for this I need to know the Y coordinate of each one of those Anchorpanes.
Is there a way to find out the y coordinate of an AnchorPane that has been added to a flow pane?
I keep getting 0.0 using getLayoutY(), getScaleY(), or getTranslateY() even if it is on the second row.
NODE: Deviding Flow Pane width by the AnchorPane width doesn't really work because of extra complexities such as: if the FlowPane is inside of a ScrollPane then some of that width is taken up by the scroll bar