diff options
author | Johannes Dahlström <johannes.dahlstrom@vaadin.com> | 2012-07-09 15:47:51 +0000 |
---|---|---|
committer | Johannes Dahlström <johannes.dahlstrom@vaadin.com> | 2012-07-09 15:47:51 +0000 |
commit | ba2d51b6bd751eb9574bf245b56293f6dcdc2c06 (patch) | |
tree | 0fd1df3af8457934dd21e2fb56946da5807b8057 | |
parent | 2847912abaf817ee4f9b7b7f00ce3a8391c917df (diff) | |
download | vaadin-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.java | 2 |
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); } |