[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-openjfx-dev
Subject:    PopupWindow.AnchorLocation inconsistent with other location properties in RTL mode
From:       Itai <itaisha () gmail ! com>
Date:       2016-11-22 9:44:30
Message-ID: CAFciv5X2C_eX8QDCcNy2NSDgXHwUnrO0YywC2J0ZqVcQ9qed9Q () mail ! gmail ! com
[Download RAW message or body]

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



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic