Skip to content

Remove legacy SORT_WIDTH spacing logic in SWT.Tree #429

@ShahzaibIbrahim

Description

@ShahzaibIbrahim

Description
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.

This legacy spacing logic is no longer required on modern platforms and results in unnecessary extra padding in tree columns.

Proposed Change

Remove the additional SORT_WIDTH spacing logic in Tree column rendering.

Verify that sort indicators are correctly aligned above the column text on all supported platforms (Windows 7 and newer).

Metadata

Metadata

Labels

HiDPIA HiDPI-Related Issue or FeatureSWTIssue for SWT

Type

No type

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions