Commit 9d11600
committed
Disposing and recreating menus menus when parent changes
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.1 parent 4976c3a commit 9d11600
File tree
1 file changed
+13
-0
lines changed- bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt
1 file changed
+13
-0
lines changedLines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
102 | 103 | | |
103 | 104 | | |
| 105 | + | |
104 | 106 | | |
105 | 107 | | |
106 | 108 | | |
| |||
583 | 585 | | |
584 | 586 | | |
585 | 587 | | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
586 | 599 | | |
587 | 600 | | |
588 | 601 | | |
| |||
0 commit comments