Community
Participate
Working Groups
Created attachment 265888 [details] table snapshot o.e.p.uml.properties.widgets.NattablePropertyEditor creates a SWT group then place nattable table inside it. When adding more elements to the table extra unused spaces are added below the table once the properties page refreshed. i.e., click different element from model explorer and then click back original element. I think table size calculation should be updated to fix this issue. Snapshot of property view is attached.
It should also be noted that the number of empty rows seem to be related to the number of rows that the table already have, i.e. the more rows the table have, the more empty rows are added, causing the table (including the empty rows) to grow exponentially. It should be sufficient to add a fixed number of empty rows, e.g. one empty row, in the same way as how ordinary lists behaves in the Papyrus properties view.
Created attachment 266116 [details] Empty table in properties
Created attachment 266117 [details] Fill table in properties
After investigation and some tests, this bug seems to be already fixed on the last neon (and oxygen) version. See the two attachments (2 and 3).
(In reply to Nicolas FAUVERGUE from comment #4) > After investigation and some tests, this bug seems to be already fixed on > the last neon (and oxygen) version. > See the two attachments (2 and 3). Have you tried to click on the different type of element and come back to the element you were testing?? If you click different item with same type then the page does not refresh and no spaces may appear.
Indeed, if we click on same type of the selected item, the layout is not recalculated, only the data are updated, i will take a look at this problem.
New Gerrit change created: https://git.eclipse.org/r/88111
Gerrit change https://git.eclipse.org/r/88111 was merged to [master]. Commit: http://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=140d590fa25723ec789ede7a16cfd1a5c53931c7
New Gerrit change created: https://git.eclipse.org/r/88175
New Gerrit change created: https://git.eclipse.org/r/88179
Gerrit change https://git.eclipse.org/r/88175 was merged to [streams/2.0-maintenance]. Commit: http://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=35f0174eba93389b1486574f910f9ea44ff477a2
This bug can now be marked as resolved fixed.