It seems the meaning of AnchorLocation is opposite to all other
position/location parameters in JavaFX when using RTL orientation: in
javafx.geometry.Pos, javafx.geometry.HPos LEFT always means "start", so in
RTL orientation it aligns nodes to the right (i.e. start of read order).

In AnchorLocation however, LEFT and RIGHT have absolute meanings,
regardless of node orientation. The comment in [1] says this is how it
should work, but considering this is opposite to how other parts of JavaFX
operate and that in RTL orientation the default behavior should be
anchoring to the right, I think it may be a problem.

At the very least, perhaps clarify in the documentation of AnchorLocation
that its meaning differs from Pos etc.?

Thanks,
Itai.

[1]
https://bugs.openjdk.java.net/browse/JDK-8125934?focusedCommentId=13767580&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13767580

Reply via email to