RFR: 8370465: Right to Left Orientation Issues with MenuItem Component.

Tejesh R tr at openjdk.org
Tue Oct 28 07:32:00 UTC 2025


On Fri, 24 Oct 2025 04:21:30 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

> Icon rendering offset is wrong for RTL orientation which is why the icon was not rendered properly..Also, LEADING horizontal text position was not accounted for..
> 
> Before fix
> 
> <img width="386" height="487" alt="image" src="https://github.com/user-attachments/assets/d33140e0-85f1-471c-abf4-bfc7992cd79e" />
> 
> With fix
> 
> <img width="384" height="491" alt="image" src="https://github.com/user-attachments/assets/9df65234-2b84-48ae-b85e-eefdbfbd544e" />

<img width="400" height="479" alt="image" src="https://github.com/user-attachments/assets/932b9145-3ee7-4fb0-ab96-b6dd0bfa5a88" />

With fix, starting position of text and icon seems to be having an offset compared to metal. Icon is starting a bit right side (2nd line) and text is a bit left side.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/27968#issuecomment-3454985569


More information about the client-libs-dev mailing list