Skip to content

Conversation

ShahzaibIbrahim
Copy link
Contributor

Since Windows 7, the sort indicator in tree columns is rendered above the column header text, whereas in Windows XP it was placed next to the text. The original SWT implementation added extra pixels (SORT_WIDTH) to the column width to make space for the indicator.

In Windows XP, the indicator was next to the line, where the logic probably originated from. See,

image

From Windows 7 onwards, the sort indicator is on top like this,

image

Since Windows 7, the sort indicator in tree columns is rendered above
the column header text, whereas in Windows XP it was placed next to the
text. The original SWT implementation added extra pixels (SORT_WIDTH) to
the column width to make space for the indicator.
Copy link
Contributor

github-actions bot commented Sep 2, 2025

Test Results

   546 files  ±0     546 suites  ±0   32m 19s ⏱️ +47s
 4 426 tests ±0   4 409 ✅ ±0   17 💤 ±0  0 ❌ ±0 
16 750 runs  ±0  16 623 ✅ ±0  127 💤 ±0  0 ❌ ±0 

Results for commit f7ba974. ± Comparison against base commit f6de513.

Copy link
Contributor

@BeckerWdf BeckerWdf left a comment

Choose a reason for hiding this comment

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

I did a code review and the changes look good to me.
As I am on macOS I cannot test the changes

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.

Remove legacy SORT_WIDTH spacing logic in SWT.Tree
2 participants