Skip to content

Conversation

@ShahzaibIbrahim
Copy link
Contributor

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.

How to Test

  • Run Snippet 8 from Snippet Explorer with Primary monitor of 250%
  • You will notice the width of the header wider than previous state since we take zoom into consideration.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 27, 2025

Test Results

  115 files  ±0    115 suites  ±0   13m 37s ⏱️ + 1m 53s
4 560 tests ±0  4 544 ✅ ±0  16 💤 ±0  0 ❌ ±0 
  311 runs  ±0    308 ✅ ±0   3 💤 ±0  0 ❌ ±0 

Results for commit 178f311. ± Comparison against base commit 3f52224.

♻️ This comment has been updated with latest results.

@ShahzaibIbrahim
Copy link
Contributor Author

@akoch-yatta this PR was left behind as part of this ticket: vi-eclipse/Eclipse-Platform#404. Could you reveiw it?

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.
@akoch-yatta akoch-yatta force-pushed the master-404-TABLE-HEADER branch from e6a30a0 to 178f311 Compare October 22, 2025 08:59
Copy link
Contributor

@akoch-yatta akoch-yatta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change is small and makes sense in the context of monitor specific scaling. Didn't find a regression when testing it

@akoch-yatta akoch-yatta merged commit 2d95f10 into eclipse-platform:master Oct 22, 2025
17 checks passed
@akoch-yatta akoch-yatta deleted the master-404-TABLE-HEADER branch October 22, 2025 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Scale Table.HEADER_MARGIN by zoom level instead of using fixed pixels

2 participants