From: Matti Tahvonen Date: Tue, 4 Nov 2008 14:39:08 +0000 (+0000) Subject: modified example to be compatible with current layout system X-Git-Tag: 6.7.0.beta1~3867 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cb94def5442134625e6df6452367a3781f2bb8ae;p=vaadin-framework.git modified example to be compatible with current layout system svn changeset:5818/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/demo/featurebrowser/TreeExample.java b/src/com/itmill/toolkit/demo/featurebrowser/TreeExample.java index bea28035e4..e7611353e4 100644 --- a/src/com/itmill/toolkit/demo/featurebrowser/TreeExample.java +++ b/src/com/itmill/toolkit/demo/featurebrowser/TreeExample.java @@ -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) {