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

Bug 183091

Summary: TableViewer row heights resize when selected on GTK/Linux with ILazyContentProvider
Product: [Eclipse Project] Platform Reporter: Evan Hourigan <3vanhourigan>
Component: SWTAssignee: Bogdan Gheorghe <gheorghe>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: ericwill, tom.schindl
Version: 3.2.1Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:
Attachments:
Description Flags
Good screenshot.
none
Another screenshot none

Description Evan Hourigan CLA 2007-04-18 20:00:59 EDT
Build ID: M20060921-0945

Steps To Reproduce:
1. Create a VIRTUAL TableViewer whose content provider is an instance of ILazyContentProvider, and label provider is an ITableLabelProvider.  The label provider should provide images for the first and second columns, and text for all columns after the first.
2. Running on GTK Linux, show a table with a whole bunch of items, and select one.  In my case, I was using the table in an EclipseForms FormEditor's FormPage.
3. Notice that the row resizes when selected, causing the padding beneath the baseline of the text and the bottom of the row to disappear, forcing all of the cells to shift upward.  I will attach a screenshot illustrating this behaviour.


More information:
in your ILazyContentProvider's updateElement(int index) method, you will call replace on the tableviewer.
Comment 1 Evan Hourigan CLA 2007-04-18 20:06:25 EDT
Created attachment 64251 [details]
Good screenshot.

You will see in center of the screenshot the behaviour described.  Notice that in the TableViewer seen in the view on the right edge of the screen, the behaviour cannot be seen.  Differently from the one in the center of the screenshot, the one on the right uses an IStructuredContentProvider.
Comment 2 Evan Hourigan CLA 2007-04-18 20:07:58 EDT
Created attachment 64252 [details]
Another screenshot
Comment 3 Eric Williams CLA 2018-06-15 14:58:51 EDT
Can you provide a snippet for this issue?
Comment 4 Eric Williams CLA 2018-07-06 13:31:41 EDT
(In reply to Eric Williams from comment #3)
> Can you provide a snippet for this issue?

No response in almost a month and bug is quite old. I'm going to close this one, please re-open it if the issue reoccurs on 4.8 and GTK3.22.