summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin
diff options
context:
space:
mode:
authorJohn Alhroos <john.ahlroos@itmill.com>2011-09-30 11:22:39 +0000
committerJohn Alhroos <john.ahlroos@itmill.com>2011-09-30 11:22:39 +0000
commitead7a79bc2cfdd9887f01937e0ca82db71c6ea69 (patch)
tree07839e71db5d0983d3e64e4f501ee8cac1c2e2eb /src/com/vaadin
parent5e68258c8b6dc8d02722bd2b850c74fde338d7f9 (diff)
downloadvaadin-framework-ead7a79bc2cfdd9887f01937e0ca82db71c6ea69.tar.gz
vaadin-framework-ead7a79bc2cfdd9887f01937e0ca82db71c6ea69.zip
Fixes #7687
svn changeset:21469/svn branch:6.7
Diffstat (limited to 'src/com/vaadin')
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VTree.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VTree.java b/src/com/vaadin/terminal/gwt/client/ui/VTree.java
index b85b3a5aa6..fa25279328 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/VTree.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/VTree.java
@@ -1043,7 +1043,13 @@ public class VTree extends FocusElementPanel implements Paintable,
}
public boolean isLeaf() {
- return getStyleName().contains("leaf");
+ String[] styleNames = getStyleName().split(" ");
+ for (String styleName : styleNames) {
+ if (styleName.equals(CLASSNAME + "-leaf")) {
+ return true;
+ }
+ }
+ return false;
}
private void setState(boolean state, boolean notifyServer) {