diff options
Diffstat (limited to 'src/com/itmill/toolkit/demo/featurebrowser/TreeExample.java')
-rw-r--r-- | src/com/itmill/toolkit/demo/featurebrowser/TreeExample.java | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |