Community
Participate
Working Groups
I am using the TableCompeViewer in a GridLayout or TableWrapLayout. Independently from the wrapping layout the TableCombo grows every time (by 18 px) when a selection is made in table in the drop down shell. This happens only when an image (in my case 18 px wide) is displayed as provided by the LabelProvider. In the collapsed mode and when using keyboard cursor movements or the mouse wheel everything works fine.
(In reply to comment #0) > I am using the TableCompeViewer in a GridLayout or TableWrapLayout. > Independently from the wrapping layout the TableCombo grows every time (by 18 > px) when a selection is made in table in the drop down shell. This happens only > when an image (in my case 18 px wide) is displayed as provided by the > LabelProvider. In the collapsed mode and when using keyboard cursor movements > or the mouse wheel everything works fine. enrico, Can you provide me with a reproducible snippet that shows the issue you are seeing? Thanks, Marty
currently not - the "snippet" would be our application... I will see if i can create one.
Created attachment 176551 [details] Patch to ignore the table width while computing the control size I have investigated the issue a bit. When I ignore the table width while computing the controls size everything goes right. I don't know what happens if there are multiple columns in the table.
(In reply to comment #3) > Created an attachment (id=176551) [details] > Patch to ignore the table width while computing the control size > > I have investigated the issue a bit. When I ignore the table width while > computing the controls size everything goes right. I don't know what happens if > there are multiple columns in the table. That seems strange that ignoring the table width fixes the problem. I still would like to have a reproducible snippet that shows the issue you are seeing. I have not been able to reproduce. Marty
Hi, I have multiple columns and the patch doesn't worked. I found out the resize problem only appears at me, when my input size is smaller than the visible count size. You can take the TableComboViewerSnippet1 and reduce the input list size from 20 model down to 5. Than watch example comboviewer #6. It resizes every time dropDown is called. If the vertical scrollbar appears, everything works as expected. If the scrollbar is not there, the table resizes. Example in TableCombo#dropDown(boolean): - I have two columns 50 and 100px width - totalColumnWidth = 150 in line 680 - in TableCombo line 682 the table size is x=167 - now the table will be resized to width of 167 - at the next call of dropdown the totalColumnWidth is 167 - in TableCombo line 682 the table size is now x=184 - the table will resized again I hope this info helps. Regards, Mark
Created attachment 183682 [details] Modified Snippet watch combo #6 Modified TableComboViewerSnippet1 watch combo #6. I just have an input consisting of 5 models instead of 20. Now combo#6 grow with each dropDown call.
(In reply to comment #6) > Created an attachment (id=183682) [details] > Modified Snippet watch combo #6 > > Modified TableComboViewerSnippet1 watch combo #6. I just have an input > consisting of 5 models instead of 20. Now combo#6 grow with each dropDown > call. Mark, Can you attach the 3 gif images that you are using in the snippet you attached? Thanks, Marty
(In reply to comment #7) > > Mark, > > Can you attach the 3 gif images that you are using in the snippet you attached? > > Thanks, > > Marty You can check it out from CVS: :pserver:anonymous@dev.eclipse.org:/cvsroot/technology org.eclipse.swt.nebula/org.eclipse.swt.nebula.snippets Regards, Mark
Created attachment 183686 [details] image 1
Created attachment 183688 [details] gif 2
Created attachment 183690 [details] image 3
Created attachment 183691 [details] Model
(In reply to comment #12) > Created an attachment (id=183691) [details] > Model Mark, Sorry about the image attachment requests. I didn't realize that they are the example images that I included with the snippet. I see the problem with the Widget now and will work on a fix for it over the Holiday weekend. I will let you know when it has been fixed. Thanks for the reproducable. Marty
(In reply to comment #13) > (In reply to comment #12) > > Created an attachment (id=183691) [details] [details] > > Model > > Mark, > > Sorry about the image attachment requests. I didn't realize that they are the > example images that I included with the snippet. I see the problem with the > Widget now and will work on a fix for it over the Holiday weekend. > > I will let you know when it has been fixed. > > Thanks for the reproducable. > > Marty I have found the bug and have added logic that fixes it. Thanks Enrico and Mark for your input. Please let me know if you guys have any problems with the patch. Marty