]> source.dussan.org Git - vaadin-framework.git/commitdiff
fixed some code to compile on gwt 1.5
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Fri, 16 May 2008 09:01:17 +0000 (09:01 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Fri, 16 May 2008 09:01:17 +0000 (09:01 +0000)
svn changeset:4523/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/ui/ITree.java

index 79fcface91f582f0bc5f9c398bf7daa205244aad..f40d62d099bad2bb3df1eb233c25e64fa1d952dc 100644 (file)
@@ -213,14 +213,12 @@ public class ITree extends FlowPanel implements Paintable {
         }
 
         protected void constructDom() {
-            final Element root = DOM.createDiv();
             nodeCaptionDiv = DOM.createDiv();
             DOM.setElementProperty(nodeCaptionDiv, "className", CLASSNAME
                     + "-caption");
             nodeCaptionSpan = DOM.createSpan();
-            DOM.appendChild(root, nodeCaptionDiv);
+            DOM.appendChild(getElement(), nodeCaptionDiv);
             DOM.appendChild(nodeCaptionDiv, nodeCaptionSpan);
-            setElement(root);
 
             childNodeContainer = new FlowPanel();
             childNodeContainer.setStylePrimaryName(CLASSNAME + "-children");