Skip to content

Commit 8e2c4c2

Browse files
committed
Don't increase scrollable size for zero width tables
This seem to fix StackOverflow on "Trust" table on Linux, see eclipse-equinox/p2#946. No idea how and if this affect everything else.
1 parent ccd8bab commit 8e2c4c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bundles/org.eclipse.jface/src/org/eclipse/jface/layout/AbstractColumnLayout.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ protected void layout(Composite composite, boolean flushCache) {
254254
int width = Math.max(0, area.width - trim);
255255

256256
if (width > 1)
257-
layoutTableTree(table, width, area, tableWidth < area.width);
257+
layoutTableTree(table, width, area, tableWidth > 0 && tableWidth < area.width);
258258

259259
// For the first time we need to relayout because Scrollbars are not
260260
// calculate appropriately

0 commit comments

Comments
 (0)