Commit 5014673
committed
Scale Tree.GRID_WIDTH by zoom level instead of using fixed pixels
The Tree.GRID_WIDTH constant specifies the extra width added to a tree
item
when lines between columns are visible (`lineVisible = true`). This
compensates
for the space taken by the grid line. Previously, this was defined as a
fixed
pixel value, which appeared too small on high-DPI monitors.
This change redefines GRID_WIDTH in points and converts it to pixels
based on
the current zoom level, ensuring consistent column spacing across
different
display scales.1 parent 1eb32bc commit 5014673
File tree
3 files changed
+5
-5
lines changed- bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets
3 files changed
+5
-5
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2960 | 2960 | | |
2961 | 2961 | | |
2962 | 2962 | | |
2963 | | - | |
| 2963 | + | |
2964 | 2964 | | |
2965 | 2965 | | |
2966 | 2966 | | |
2967 | | - | |
| 2967 | + | |
2968 | 2968 | | |
2969 | 2969 | | |
2970 | 2970 | | |
| |||
8055 | 8055 | | |
8056 | 8056 | | |
8057 | 8057 | | |
8058 | | - | |
| 8058 | + | |
8059 | 8059 | | |
8060 | 8060 | | |
8061 | 8061 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
401 | | - | |
| 401 | + | |
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
533 | | - | |
| 533 | + | |
534 | 534 | | |
535 | 535 | | |
536 | 536 | | |
| |||
0 commit comments