Commit 86288d0
[win32] Adapt autoscaling behavior in the getters for bounds
This commit adapt the behavior of Control#getBounds getSize and
getLocation if autoscaling of a control is disabled, but the
autoscaling of the parent is not disabled. As of now it always used the
parent zoom to scale down the pixel values. This
led to issues with existing implementations that were built to use the
bounds of the control in its own zoom context.1 parent 63d5582 commit 86288d0
File tree
1 file changed
+11
-4
lines changed- bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets
1 file changed
+11
-4
lines changedLines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1214 | 1214 | | |
1215 | 1215 | | |
1216 | 1216 | | |
1217 | | - | |
| 1217 | + | |
1218 | 1218 | | |
1219 | 1219 | | |
1220 | 1220 | | |
| |||
1410 | 1410 | | |
1411 | 1411 | | |
1412 | 1412 | | |
1413 | | - | |
| 1413 | + | |
1414 | 1414 | | |
1415 | 1415 | | |
1416 | 1416 | | |
| |||
1566 | 1566 | | |
1567 | 1567 | | |
1568 | 1568 | | |
1569 | | - | |
| 1569 | + | |
1570 | 1570 | | |
1571 | 1571 | | |
1572 | 1572 | | |
| |||
4831 | 4831 | | |
4832 | 4832 | | |
4833 | 4833 | | |
4834 | | - | |
| 4834 | + | |
| 4835 | + | |
| 4836 | + | |
| 4837 | + | |
| 4838 | + | |
| 4839 | + | |
| 4840 | + | |
| 4841 | + | |
4835 | 4842 | | |
4836 | 4843 | | |
4837 | 4844 | | |
| |||
0 commit comments