Skip to content
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

set Location of menu wrt Display coordinate system #1536

Conversation

amartya4256
Copy link
Contributor

This PR contributes to the following regression:

In a multi zoom setup (mine was left (primary 200%), right (secondary 175%) there is a regression (both with and without update on autoscale) in menus.
We need to treat Menus similar to Shells -> they are always positioned with an absolute value. Currently they are set with two different ways:

  1. Old zoomed down location, e.g. in Widget::showMenu -> this still works
  2. New zoomed location, e.g. Push menus like the Run configurations -> this will result in

image

however, the locations supplied to these methods are in display coordinate system and hence must be scaled with the right methods as reflected in the PR.

Copy link
Contributor

github-actions bot commented Oct 14, 2024

Test Results

   486 files  ±0     486 suites  ±0   7m 37s ⏱️ - 1m 12s
 4 154 tests ±0   4 146 ✅ ±0   8 💤 ±0  0 ❌ ±0 
16 370 runs  ±0  16 278 ✅ ±0  92 💤 ±0  0 ❌ ±0 

Results for commit 85a4aed. ± Comparison against base commit 7a04f7a.

♻️ This comment has been updated with latest results.

This commit contributes to scaling of the point used to set location of
a menu bar in a display coordinate space hence the scaling methods used
for such Points must be the ones used for Display coordinate system.

contributes to eclipse-platform#62 and eclipse-platform#127
@HeikoKlare HeikoKlare force-pushed the fix_menu_set_location_wrt_display_coordinate_system branch from b908e03 to 85a4aed Compare October 14, 2024 20:08
@fedejeanne
Copy link
Contributor

Failing tests are unrelated

@fedejeanne fedejeanne merged commit 03f829a into eclipse-platform:master Oct 15, 2024
10 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants