RFR: 8317836: FX nodes embedded in JFXPanel need to track component orientation [v8]
Kevin Rushforth
kcr at openjdk.org
Tue Oct 31 16:13:58 UTC 2023
On Tue, 31 Oct 2023 15:55:39 GMT, Andy Goryachev <angorya at openjdk.org> wrote:
> > if (!cor.equals(ComponentOrientation.UNKNOWN)) {
> > boolean rtl = cor.equals(ComponentOrientation.RIGHT_TO_LEFT);
> > stage.setNodeOrientation(rtl ? NodeOrientation.RIGHT_TO_LEFT :
> > NodeOrientation.LEFT_TO_RIGH**T); } else { stage.setNodeOrientation(NodeOrientation.LEFT_TO_RIGHT);**
> > }
>
> I think it should do a simple translation: LTR -> LTR RTL -> RTL UNKNOWN -> INHERIT
For the _effective_ NodeOrientation attribution in the embedded window, there's no such thing as INHERIT. It's either LTR (default) or RTL.
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1271#issuecomment-1787531546
More information about the openjfx-dev
mailing list