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

Bug 224954

Summary: [Win32] TableItem background does not fill first column fully
Product: [Eclipse Project] Platform Reporter: Grant Gayed <grant_gayed>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: eclipse, eclipse, niraj.modi, ts-swt
Version: 3.4Keywords: helpwanted, triaged
Target Milestone: ---   
Hardware: PC   
OS: Windows All   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=295869
Whiteboard: stalebug
Attachments:
Description Flags
Screenshot on Windows 10 none

Description Grant Gayed CLA 2008-03-31 13:41:43 EDT
Run the snippet below and note the white gap in front of the item's column 0 (this column is moved to the column 1 position).  This gap also seems to exist if the column order is not rearranged, but it's not as obvious in this case because it doesn't create a break in the background colour.

public static void main (String [] args) {
    Display display = new Display ();
    final Shell shell = new Shell (display);
    shell.setBounds(10,10,200,200);
    Table table = new Table(shell, SWT.NONE);
    table.setBounds(10,10,180,150);
    table.setHeaderVisible(true);
    new TableColumn(table, SWT.NONE).setWidth(50);
    new TableColumn(table, SWT.NONE).setWidth(50);
    new TableColumn(table, SWT.NONE).setWidth(50);
    table.setColumnOrder(new int[] {2, 0, 1});
    TableItem item = new TableItem(table, SWT.NONE);
    item.setText(new String[] {"col0","col1","col2"});
    item.setBackground(display.getSystemColor(SWT.COLOR_RED));
    shell.open();
    while (!shell.isDisposed ()) {
            if (!display.readAndDispatch ()) display.sleep ();
    }
    display.dispose ();
}
Comment 1 Thomas Singer CLA 2011-12-16 11:24:23 EST
We have the same problem. Will this bug ever be fixed?
Comment 2 Grant Gayed CLA 2011-12-16 12:07:48 EST
> We have the same problem. Will this bug ever be fixed?

Reassigning bug since Steve no longer actively works on SWT.

I don't think this bug has as a high a priority as some others, so I can't predict when/if it will be fixed.  I've added the helpwanted keyword here in the hope that someone from outside of the group has the time to investigate this.
Comment 3 Eclipse Genie CLA 2020-05-06 17:33:37 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.
Comment 4 Thomas Singer CLA 2020-05-07 06:13:02 EDT
Created attachment 282735 [details]
Screenshot on Windows 10

Bug is still present, please reopen.
Comment 5 Niraj Modi CLA 2020-05-07 06:28:28 EDT
(In reply to Thomas Singer from comment #4)
> Created attachment 282735 [details]
> Screenshot on Windows 10
> 
> Bug is still present, please reopen.

Reopening.
Comment 6 Lars Vogel CLA 2020-05-11 15:53:46 EDT
Please reopen if the problem still persists.
Comment 7 Thomas Singer CLA 2020-05-12 03:43:46 EDT
(In reply to Lars Vogel from comment #6)
> Please reopen if the problem still persists.

Lars, did you read my comment from 2020-05-07 06:13:02?