RFR: 8228363: ContextMenu.show with side=TOP does not work the first time in the presence of CSS [v2]

Kevin Rushforth kcr at openjdk.java.net
Fri Jan 22 18:47:46 UTC 2021

On Fri, 22 Jan 2021 12:01:55 GMT, Robert Lichtenberger <rlichten at openjdk.org> wrote:

>> Oh wow. Further experimentation has shown, that if NodeOrientation.RIGHT_TO_LEFT is used on the anchor, then Side.LEFT used to make the menu appear on the **right** hand side and Side.RIGHT used to make the menu appear on the **left** hand side of the button, which really surprises me, since I didn't expect the side parameter to be relative.
> Ok, I just pushed all the changes necessary to keep the old behaviour for right-to-left node orientation.
> If you would rather have the behaviour changed (it doesn't seem very intuitive to me...) just tell me and I can change the implementation / tests.

Good catch. The current behavior is consistent with how RTL works for most things, so we do want to preserve that behavior.


PR: https://git.openjdk.java.net/jfx/pull/383

More information about the openjfx-dev mailing list