Skip to content

Conversation

ShahzaibIbrahim
Copy link
Contributor

@ShahzaibIbrahim ShahzaibIbrahim commented Aug 27, 2025

The Table.VISTA_EXTRA and Table.EXPLORER_EXTRA constants specify additional spacing applied to table items when using the Vista or Explorer themes. 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 VISTA_EXTRA and EXPLORER_EXTRA in points and converts them to pixels based on the current zoom level, ensuring consistent spacing for themed table items across different display scales.

How to Test

  • Run Snippet 7 from Snippet Explorer with Primary monitor of 250%
  • You will notice the width is bit (2 px) wider than previous state since we take zoom into consideration.

Copy link
Contributor

github-actions bot commented Aug 27, 2025

Test Results

   546 files  ±0     546 suites  ±0   38m 16s ⏱️ + 4m 55s
 4 431 tests ±0   4 414 ✅ ±0   17 💤 ±0  0 ❌ ±0 
16 764 runs  ±0  16 637 ✅ ±0  127 💤 ±0  0 ❌ ±0 

Results for commit f99943d. ± Comparison against base commit de3812d.

♻️ This comment has been updated with latest results.

@ShahzaibIbrahim ShahzaibIbrahim force-pushed the master-404-TABLE-EXPLORER_EXTRA branch 2 times, most recently from e1345db to e974783 Compare August 29, 2025 10:39
@akoch-yatta
Copy link
Contributor

@ShahzaibIbrahim Are you sure about your How To Test? With the SnippetExplorer I don't run into any of the usages of this constants.

@ShahzaibIbrahim
Copy link
Contributor Author

ShahzaibIbrahim commented Sep 1, 2025

@ShahzaibIbrahim Are you sure about your How To Test? With the SnippetExplorer I don't run into any of the usages of this constants.

I might have mentioned wrong snippet here. I will check and confirm it in a bit.

Edit: It was a snippet 7, I mistyped. @akoch-yatta

@ShahzaibIbrahim ShahzaibIbrahim force-pushed the master-404-TABLE-EXPLORER_EXTRA branch from e974783 to 66955f7 Compare September 1, 2025 10:43
@akoch-yatta akoch-yatta force-pushed the master-404-TABLE-EXPLORER_EXTRA branch from 66955f7 to c5275cb Compare September 4, 2025 07:47
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.

Changes look good and ensure a consistent behavior independent of the zoom the Table is rendered for

@akoch-yatta akoch-yatta force-pushed the master-404-TABLE-EXPLORER_EXTRA branch 2 times, most recently from 359f83d to 98fcc9a Compare September 5, 2025 07:10
The Table.VISTA_EXTRA and Table.EXPLORER_EXTRA constants specify additional
spacing applied to table items when using the Vista or Explorer themes. 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 VISTA_EXTRA and EXPLORER_EXTRA in points and converts them to pixels based on the current zoom level, ensuring consistent spacing for themed table items across different display scales.
@akoch-yatta akoch-yatta force-pushed the master-404-TABLE-EXPLORER_EXTRA branch from 98fcc9a to f99943d Compare September 8, 2025 06:19
@akoch-yatta akoch-yatta merged commit f878858 into eclipse-platform:master Sep 8, 2025
17 checks passed
@akoch-yatta akoch-yatta deleted the master-404-TABLE-EXPLORER_EXTRA branch September 8, 2025 06:51
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.EXPLORER_EXTRA by zoom level instead of using fixed pixels
2 participants