diff options
Diffstat (limited to 'src/com/vaadin/demo/sampler/features/layouts/ApplicationLayoutExample.java')
-rw-r--r-- | src/com/vaadin/demo/sampler/features/layouts/ApplicationLayoutExample.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/vaadin/demo/sampler/features/layouts/ApplicationLayoutExample.java b/src/com/vaadin/demo/sampler/features/layouts/ApplicationLayoutExample.java index 79b6e1258f..c809d66ca2 100644 --- a/src/com/vaadin/demo/sampler/features/layouts/ApplicationLayoutExample.java +++ b/src/com/vaadin/demo/sampler/features/layouts/ApplicationLayoutExample.java @@ -14,6 +14,7 @@ import com.vaadin.ui.Window; import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Window.CloseEvent;
+@SuppressWarnings("serial")
public class ApplicationLayoutExample extends VerticalLayout {
Window win = new ApplicationLayoutWindow();
@@ -51,14 +52,14 @@ public class ApplicationLayoutExample extends VerticalLayout { // Our main layout is a horizontal layout
HorizontalLayout main = new HorizontalLayout();
main.setSizeFull();
- setLayout(main);
+ setContent(main);
// Tree to the left
Panel treePanel = new Panel(); // for scrollbars
treePanel.setStyleName(Panel.STYLE_LIGHT);
treePanel.setHeight("100%");
treePanel.setWidth(null);
- treePanel.getLayout().setSizeUndefined();
+ treePanel.getContent().setSizeUndefined();
addComponent(treePanel);
Tree tree = new Tree();
|