Commit 2d95f10
Scale Table.HEADER_MARGIN by zoom level instead of using fixed pixels
The Table.HEADER_MARGIN constant defines the extra fixed-width spacing
for table
headers, while the Table.HEADER_EXTRA constant specifies the additional
spacing
applied to the header area. Previously, both were defined as fixed pixel
values,
which worked at 100% zoom but did not scale properly on high-DPI
monitors.
This change redefines HEADER_MARGIN and HEADER_EXTRA in points and
converts
them to pixels based on the current zoom level, ensuring consistent
header
spacing across different display scales.1 parent 3f52224 commit 2d95f10
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 | |
|---|---|---|---|
| |||
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
404 | | - | |
405 | | - | |
| 404 | + | |
| 405 | + | |
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
| |||
0 commit comments