jdk icon indicating copy to clipboard operation
jdk copied to clipboard

7189422: [macosx] Submenu's arrow have a wrong position

Open prsadhuk opened this issue 3 years ago • 4 comments

Issue is Arrow in submenu with empty title have a wrong position in Aqua L&F as can be seen

image

which is because the text being null/empty, labelR rectangle width/height is 0 so arrowIcon y coordinate becomes -ve as per the calculation in layoutMenuItem(). Although it seems logical to me to not show the arrow if submenu text is null, but whereas for other L&F, it is shown as this for Metal image

for Nimbus image

so the fix is made in Aqua L&F to show as other L&F as image


Progress

  • [x] Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • [x] Change must not contain extraneous whitespace
  • [x] Commit message must refer to an issue

Issue

  • JDK-7189422: [macosx] Submenu's arrow have a wrong position

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/9769/head:pull/9769
$ git checkout pull/9769

Update a local copy of the PR:
$ git checkout pull/9769
$ git pull https://git.openjdk.org/jdk pull/9769/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 9769

View PR using the GUI difftool:
$ git pr show -t 9769

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/9769.diff

prsadhuk avatar Aug 05 '22 08:08 prsadhuk

:wave: Welcome back psadhukhan! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

bridgekeeper[bot] avatar Aug 05 '22 09:08 bridgekeeper[bot]

@prsadhuk The following label will be automatically applied to this pull request:

  • client

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.

openjdk[bot] avatar Aug 05 '22 09:08 openjdk[bot]

Webrevs

mlbridge[bot] avatar Aug 05 '22 09:08 mlbridge[bot]

@prsadhuk This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

7189422: [macosx] Submenu's arrow have a wrong position

Reviewed-by: prr, dnguyen

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 385 new commits pushed to the master branch:

  • c3d3662e52de434adb267485982fbf8541bdc0c8: 8292313: 2 runtime/cds/appcds tests fail after JDK-8284313
  • 3e122419b2979235f57c0dd549ca63647ea73753: 8290775: Some doc errors in DerOutputStream.java
  • ec53fba03933446024028555b87c6023895a5dc6: 8292361: Build failure on PPC64 BE after JDK-8290840
  • 4cc6cb9d9ddbcc540baac7b81398f2af83f93340: 8290041: ModuleDescriptor.hashCode is inconsistent
  • d1edda8ff52e172a85d102d7d5062b9cc401beea: 8292338: aarch64: Use cbnz instruction in gen_continuation_enter when possible
  • 21f4eb2233a95be44a5db59b7791cd952ddbd56e: 6521141: DebugGraphics NPE @ setFont();
  • 6e6ae596d6bd73909b90911e01fbd0c16f6335e1: 8292286: Convert PlaceholderTable to ResourceHashtable
  • ea2c82e74f5580f396920f9e561cbec80c03f373: 8291949: Unexpected extending of SupportedGroups
  • b5707b0376660cd8763e46d525ba614b08a59d7b: 8292196: Reduce runtime of java.util.regex microbenchmarks
  • b00eedeb029445417f99e8aa4e8fca12e5c69155: 8291511: Redefinition of EXIT_FAILURE in libw2k_lsa_auth
  • ... and 375 more: https://git.openjdk.org/jdk/compare/6e18883d8ffd9a7b7d495da05e9859dc1d1a2677...master

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

openjdk[bot] avatar Aug 11 '22 19:08 openjdk[bot]

/integrate

prsadhuk avatar Aug 29 '22 10:08 prsadhuk

Going to push as commit d5167a91a9d35afba1a2f246f9d320f1cbb998b2. Since your change was applied there have been 530 commits pushed to the master branch:

  • 512fee1d1eee4aa4bb7362cc9cb48d63e129a525: 8292972: Initialize fields if CodeBlobIterator shortcuts without heaps
  • a476ec5c81968e9a8cf7fb02f61cc4a5c8c2d520: 8292983: ModuleReferenceImpl.computeHash should record algorithm for cache checks
  • 99cab6a68e16b6e39f82a7a4aa98a551d1df292b: 8292911: Add a note about jtreg failure handlers in the testing doc
  • f6b636015573f9b88133efba2f87bed80f463a96: 8289949: Improve test coverage for XPath: operators
  • b0e0b87891eb81c2b33c1cfa598701b7bd2e5bdf: 8292917: [JVMCI] Extend InstalledCode API to make an nmethod non entrant.
  • 1500d3dfb217c2c03b925622db841310f5aedb9d: 8292994: ProblemList vmTestbase/gc/lock/jni/jnilock001/TestDescription.java
  • 4e457acda09be57dbb49b5c89123bf79bf81f38c: 8291760: PipelineLeaksFD.java still fails: More or fewer pipes than expected
  • 774edeb52147bbb8b9a66da335e97398a6b4297d: 8271615: vmTestbase/vm/jit/LongTransitions/ test fail due to locale mismatch
  • 9a0d1e7ce86368cdcade713a9e220604f7d77ecf: 8292541: [Metrics] Reported memory limit may exceed physical machine memory
  • c74b6d4552da55fea8f64a1e4c1a5675037a7124: 8292562: (fc) Use copy_file_range in FileChannel::transferTo on Linux
  • ... and 520 more: https://git.openjdk.org/jdk/compare/6e18883d8ffd9a7b7d495da05e9859dc1d1a2677...master

Your commit was automatically rebased without conflicts.

openjdk[bot] avatar Aug 29 '22 10:08 openjdk[bot]

@prsadhuk Pushed as commit d5167a91a9d35afba1a2f246f9d320f1cbb998b2.

:bulb: You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

openjdk[bot] avatar Aug 29 '22 10:08 openjdk[bot]