]> source.dussan.org Git - vaadin-framework.git/commitdiff
modified example to be compatible with current layout system
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 4 Nov 2008 14:39:08 +0000 (14:39 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 4 Nov 2008 14:39:08 +0000 (14:39 +0000)
svn changeset:5818/svn branch:trunk

src/com/itmill/toolkit/demo/featurebrowser/TreeExample.java

index bea28035e431cb0452d4d123f1a9e9908fea2632..e7611353e4cbb91f1e5bb9cb7e9a82669e7cb999 100644 (file)
@@ -39,6 +39,7 @@ public class TreeExample extends CustomComponent implements Action.Handler,
     public TreeExample() {
         final OrderedLayout main = new OrderedLayout(
                 OrderedLayout.ORIENTATION_HORIZONTAL);
+        main.setWidth("100%");
         main.setMargin(true);
         setCompositionRoot(main);
 
@@ -79,6 +80,7 @@ public class TreeExample extends CustomComponent implements Action.Handler,
         editor.setColumns(15);
         p.addComponent(editor);
         main.addComponent(p);
+        main.setExpandRatio(p, 1);
     }
 
     public Action[] getActions(Object target, Object sender) {