Skip to content

Conversation

@arunjose696
Copy link
Contributor

@arunjose696 arunjose696 commented Dec 23, 2025

When a part is moved to a different monitor if the part is a control we currently reparent the part As in the this codeblock .
However Menus, unlike controls, were not reparented when their associated part was moved (e.g., dragged to a different monitor). This caused menu icons and images to render at the wrong zoom due to the old parent's DPI.

This change checks if a menu's parent has changed during rendering. If so, the menu is disposed and recreated under the correct parent, ensuring proper scaling and visual consistency across monitors.

Steps to reproduce

1)Start the runtime workspace on secondary monitor (350%)
2)Click on three dots on the right to open the menu here the icons would be rightly sized
2)Drag the Project Explorer tab to primary monitor (150%)
3)Click on three dots on the right

Before
image
After
image

@github-actions
Copy link
Contributor

github-actions bot commented Dec 23, 2025

Test Results

 3 018 files  ±0   3 018 suites  ±0   2h 12m 42s ⏱️ - 3m 53s
 8 270 tests ±0   8 022 ✅ ±0  248 💤 ±0  0 ❌ ±0 
23 634 runs  ±0  22 843 ✅ ±0  791 💤 ±0  0 ❌ ±0 

Results for commit 8f60566. ± Comparison against base commit beaeb6f.

♻️ This comment has been updated with latest results.

@arunjose696 arunjose696 marked this pull request as ready for review December 24, 2025 10:42
Copy link
Contributor

@ShahzaibIbrahim ShahzaibIbrahim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look good to me. Tested with 350% secondary zoom and 250% primary zoom

Image

@akoch-yatta akoch-yatta force-pushed the arunjose696/529/MenuPartZoom branch from 9d11600 to 34a73de Compare January 9, 2026 09:08
Menus, unlike controls, were not reparented when their associated part
was moved (e.g., dragged to a different monitor). This caused menu icons
and images to render at the wrong zoom due to the old parent's DPI.

This change checks if a menu's parent has changed during rendering.
If so, the menu is disposed and recreated under the correct parent,
ensuring proper scaling and visual consistency across monitors.
@akoch-yatta akoch-yatta force-pushed the arunjose696/529/MenuPartZoom branch from 34a73de to 8f60566 Compare January 19, 2026 07:35
Copy link
Contributor

@akoch-yatta akoch-yatta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, tested it, worked as expected and I did not find any regressions

@akoch-yatta akoch-yatta merged commit f2cf3b4 into eclipse-platform:master Jan 19, 2026
18 checks passed
@akoch-yatta akoch-yatta deleted the arunjose696/529/MenuPartZoom branch January 19, 2026 08:35
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.

Icons in **Detached** Project Explorer options are bigger after DPI change

3 participants