Commit ad438ae
committed
[Win32] Correct bounds/size value of child shells #2862
In point/pixel conversions for bounds/sizes of controls, the parent
control's zoom is used to adhere to the most appropriate context when
having auto-scale disabled controls. This, however, leads to child
shells using the zoom of the parent shells, which can be placed on a
different monitor with a different zoom, such that the bounds/sizes of
such child shells are wrongly scaled.
With this change, shells always use their own zoom for bounds/sizes
calculations instead of the one of a potential parent shell.
Fixes #28621 parent 833d748 commit ad438ae
File tree
3 files changed
+23
-1
lines changed- bundles/org.eclipse.swt
- Eclipse SWT Tests/win32/org/eclipse/swt/widgets
- Eclipse SWT/win32/org/eclipse/swt/widgets
3 files changed
+23
-1
lines changedLines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
359 | 371 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4886 | 4886 | | |
4887 | 4887 | | |
4888 | 4888 | | |
4889 | | - | |
| 4889 | + | |
4890 | 4890 | | |
4891 | 4891 | | |
4892 | 4892 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2787 | 2787 | | |
2788 | 2788 | | |
2789 | 2789 | | |
| 2790 | + | |
| 2791 | + | |
| 2792 | + | |
| 2793 | + | |
| 2794 | + | |
| 2795 | + | |
| 2796 | + | |
| 2797 | + | |
| 2798 | + | |
| 2799 | + | |
2790 | 2800 | | |
0 commit comments