Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 393189

Summary: Table/Tree column packing problems when RIGHT_TO_LEFT
Product: [Eclipse Project] Platform Reporter: Grant Gayed <grant_gayed>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: xixiyan
Version: 4.3Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard: stalebug
Attachments:
Description Flags
screenshot none

Description Grant Gayed CLA 2012-10-30 15:37:02 EDT
Created attachment 223008 [details]
screenshot

4.3M3

- run ControlExample, go to the Tree tab
- select the Lines Visible, Multiple Columns, Header Visible options
- press the Pack Columns button, seems to work fine
- select the RIGHT_TO_LEFT orientation and then press the Pack Columns button again
  -> the first (rightmost) column is now given a width that's much too wide, and the column separator lines are drawn in the wrong place
- screenshot is attached

I took a very brief look, and Tree.calculateWidth(...) seems suspicious.
Comment 1 Xi Yan CLA 2018-07-13 12:30:18 EDT
I can reproduce the issue on SWT master as of today, with GTK3.22 and Fedora 28.
Comment 2 Eclipse Genie CLA 2020-07-19 07:00:28 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.