Commit 92eaae8
Scale Tree.HEADER_MARGIN by zoom level instead of using fixed pixels
The Tree.HEADER_MARGIN constant defines extra fixed-width spacing for
tree
headers. Previously, this was a fixed pixel value, which worked at 100%
zoom
but did not scale properly on high-DPI monitors.
This change redefines HEADER_MARGIN in points and converts it to pixels
based
on the current zoom level, ensuring consistent header spacing across
different
display scales.1 parent eb0f6a6 commit 92eaae8
File tree
1 file changed
+2
-2
lines changed- bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
378 | | - | |
379 | | - | |
| 378 | + | |
| 379 | + | |
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
| |||
0 commit comments