-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8371508: [macos] In Aqua LaF menu items layout is incorrect in RTL orientation #28210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…ientation Fixed the components orientation; Added Aqua test to the existing manual case;
|
👋 Welcome back kizune! A progress list of the required criteria for merging this PR into |
|
❗ This change is not yet ready to be integrated. |
|
@azuev-java The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
Webrevs
|
|
Question on sub menu arrow . I see both the LTR & RTL are same. Should not be different > |
I think it should be, but it is initialized statically in AquaImageFactory. It might be a good idea to change it for RTL menu items but i think it is out of scope for this particular fix - here we only deal with the incorrect layout of the menu item components. I can create a follow-up bug to fix for the wrong arrow icon used for RTL menus to fix in the future. |
| /* | ||
| * @test id=aqua | ||
| * @bug 8371508 | ||
| * @requires (os.family == "mac") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess now the test can be run in window and mac OS ? Any idea on Nimbus L&F in windows os ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is Aqua LnF specific fix and Aqua LnF is only available on macOS so this exact test case can only be ran on mac. Initially test was used to validate the layout for Windows and Motif LnF. I haven't tried Nimbus yet. If there are problems with Nimbus on Windows they might be addressed separately.
The problem is that we do not correct the icon and text re-alignment that happens when we call SwingUtilities.layoutCompoundLabel
Here's the comparison of the alignment before and after the fix


Before:
After:
Progress
Issue
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/28210/head:pull/28210$ git checkout pull/28210Update a local copy of the PR:
$ git checkout pull/28210$ git pull https://git.openjdk.org/jdk.git pull/28210/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 28210View PR using the GUI difftool:
$ git pr show -t 28210Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/28210.diff
Using Webrev
Link to Webrev Comment