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 015 files  ±0   3 015 suites  ±0   2h 9m 34s ⏱️ - 6m 23s
 8 258 tests ±0   8 009 ✅  - 1  248 💤 ±0  1 ❌ +1 
23 598 runs  ±0  22 806 ✅  - 1  791 💤 ±0  1 ❌ +1 

For more details on these failures, see this check.

Results for commit 34a73de. ± Comparison against base commit 93acda3.

♻️ 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

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 9d11600 to 34a73de Compare January 9, 2026 09:08
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

2 participants