aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/demo/featurebrowser/TreeExample.java
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2008-11-04 14:39:08 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2008-11-04 14:39:08 +0000
commitcb94def5442134625e6df6452367a3781f2bb8ae (patch)
tree4643e42e0436c45e7bf8e45eefe7b692277056d0 /src/com/itmill/toolkit/demo/featurebrowser/TreeExample.java
parentb23e1776c5246d6b935ea9dcca0b9100d823bd06 (diff)
downloadvaadin-framework-cb94def5442134625e6df6452367a3781f2bb8ae.tar.gz
vaadin-framework-cb94def5442134625e6df6452367a3781f2bb8ae.zip
modified example to be compatible with current layout system
svn changeset:5818/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/demo/featurebrowser/TreeExample.java')
-rw-r--r--src/com/itmill/toolkit/demo/featurebrowser/TreeExample.java2
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) {