]> source.dussan.org Git - vaadin-framework.git/commitdiff
#7387 bugfix: ensure non-negative width
authorJohannes Dahlström <johannes.dahlstrom@vaadin.com>
Mon, 9 Jul 2012 15:47:51 +0000 (15:47 +0000)
committerJohannes Dahlström <johannes.dahlstrom@vaadin.com>
Mon, 9 Jul 2012 15:47:51 +0000 (15:47 +0000)
svn changeset:24004/svn branch:6.8

src/com/vaadin/terminal/gwt/client/ui/VTreeTable.java

index 9899ec25e4b387877040daf6b0358387752c568d..4b1448cdfba1b8d82ba9e8717c691fb7889814eb 100644 (file)
@@ -332,7 +332,7 @@ public class VTreeTable extends VScrollTable {
                 if (cellIx == colIndexOfHierarchy + (showRowHeaders ? 1 : 0)) {
                     // take indentation padding into account if this is the
                     // hierarchy column
-                    width -= getIndent();
+                    width = Math.max(width - getIndent(), 0);
                 }
                 super.setCellWidth(cellIx, width);
             }