summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Dahlström <johannes.dahlstrom@vaadin.com>2012-07-09 15:47:51 +0000
committerJohannes Dahlström <johannes.dahlstrom@vaadin.com>2012-07-09 15:47:51 +0000
commitba2d51b6bd751eb9574bf245b56293f6dcdc2c06 (patch)
tree0fd1df3af8457934dd21e2fb56946da5807b8057
parent2847912abaf817ee4f9b7b7f00ce3a8391c917df (diff)
downloadvaadin-framework-ba2d51b6bd751eb9574bf245b56293f6dcdc2c06.tar.gz
vaadin-framework-ba2d51b6bd751eb9574bf245b56293f6dcdc2c06.zip
#7387 bugfix: ensure non-negative width
svn changeset:24004/svn branch:6.8
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VTreeTable.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VTreeTable.java b/src/com/vaadin/terminal/gwt/client/ui/VTreeTable.java
index 9899ec25e4..4b1448cdfb 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/VTreeTable.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/VTreeTable.java
@@ -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);
}