From: Marc Englund Date: Wed, 11 Jun 2008 07:30:35 +0000 (+0000) Subject: Leaf nodes no longer look expandable (fixes #1686) X-Git-Tag: 6.7.0.beta1~4620 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9a5ef8fa006eac3290c7b9b63903ccf61e06759a;p=vaadin-framework.git Leaf nodes no longer look expandable (fixes #1686) svn changeset:4852/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/demo/featurebrowser/TreeExample.java b/src/com/itmill/toolkit/demo/featurebrowser/TreeExample.java index 694c839fb4..8ba9b99474 100644 --- a/src/com/itmill/toolkit/demo/featurebrowser/TreeExample.java +++ b/src/com/itmill/toolkit/demo/featurebrowser/TreeExample.java @@ -151,7 +151,9 @@ public class TreeExample extends CustomComponent implements Action.Handler, final Property p = item.getItemProperty(CAPTION_PROPERTY); p.setValue(caption); if (parent != null) { + tree.setChildrenAllowed(parent, true); tree.setParent(id, parent); + tree.setChildrenAllowed(id, false); } return id; }