Community
Participate
Working Groups
We use the Grid component to display a table. Basic simplified code is: GridTableViewer viewer = new GridTableViewer(client); viewer.getGrid().setHeaderVisible(true); viewer.getGrid().setRowHeaderVisible(true); viewer.getGrid().setRowsResizeable(true); viewer.getGrid().setCellSelectionEnabled(true); viewer.setRowHeaderLabelProvider(..... viewer.setContentProvider(... viewer.setLabelProvider(... but not including This works fine on versions up to (but not including) org.eclipse.nebula.widgets.grid_1.1.0.201711021145.jar. With the later versions if we set setRowHeaderVisible(true) no cells are displayed. Pics to follow...
Created attachment 277825 [details] This is what is should look like
Created attachment 277826 [details] This is what it looks like in later Grid versions
Created attachment 277827 [details] This is what it looks like with setRowHeaderVisible(false) This is what it looks like with setRowHeaderVisible(false)
To reproduce use GridSnippet1 https://raw.githubusercontent.com/eclipse/nebula/master/examples/org.eclipse.nebula.snippets/src/org/eclipse/nebula/snippets/grid/GridSnippet1.java And add: grid.setRowHeaderVisible(true); With that set to true on a Mac = no cells
Tested on: Eclipse 4.7 and 4.10 Mac 10.12.6 and 10.14.3
New Gerrit change created: https://git.eclipse.org/r/138538
Did the fix make it in to release?
Moving to next milestone. Mirko please move the Gerrit to Github.
Patch provided by Miko has been applied. Unfortunaltely I do not have a Mac. Phil, can you try this bugfix and give us a feedback ?
(In reply to Laurent CARON from comment #9) > Patch provided by Miko has been applied. > Unfortunaltely I do not have a Mac. > > Phil, can you try this bugfix and give us a feedback ? Sure can. How do I get it? Is there an update site or download zip?
The latest snapshot of Nebula is available at the following udate site: http://download.eclipse.org/nebula/snapshot Or you can get the source code on https://github.com/eclipse/nebula Keep us informed please ;)
Created attachment 279973 [details] Screenshot with org.eclipse.nebula.widgets.grid_1.1.0.201909221739 Sorry, it hasn't fixed the issue. I tried org.eclipse.nebula.widgets.grid_1.1.0.201909221739.jar and it looks the same as in Comment #3 The result is the same as before. And with setRowHeaderVisible(false) it looks like this. Mac 10.12.6 Eclipse 4.11
> and it looks the same as in Comment #3 I mean Comment #2
Sorry of that ;( I'm gonna look for a Mac OS computer.
Set status to "reopened"
Phil, good news I've reproduced the problem on a mac... I "just" have to find how to fix it ;)
(In reply to Laurent CARON from comment #16) > Phil, good news I've reproduced the problem on a mac... I "just" have to > find how to fix it ;) Good news, Laurent! I did take a look at the code to see if I could make a fix, but I thought best if an expert looked at it. :-)
Bug has been finally fixed in Nebula 2.3.0 On mac if one sets the width of a GridColumn before the layout of the grid, the column size was ... 1px !
Yay! Tested with version 1.1.0.201910251134 on my app and it works. Thanks for fixing. :-)
Good news, happy to help :)