diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/com/vaadin/tests/components/TestBase.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/com/vaadin/tests/components/TestBase.java b/src/com/vaadin/tests/components/TestBase.java index 45cc69516d..b56c9dd46f 100644 --- a/src/com/vaadin/tests/components/TestBase.java +++ b/src/com/vaadin/tests/components/TestBase.java @@ -4,7 +4,6 @@ import com.vaadin.Application; import com.vaadin.ui.Component;
import com.vaadin.ui.Label;
import com.vaadin.ui.Layout;
-import com.vaadin.ui.SplitPanel;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.Window;
@@ -14,21 +13,20 @@ public abstract class TestBase extends Application { public final void init() {
window = new Window(getClass().getName());
setMainWindow(window);
- window.getLayout().setSizeFull();
+ window.getContent().setSizeFull();
Label label = new Label(getDescription(), Label.CONTENT_XHTML);
label.setWidth("100%");
- window.getLayout().addComponent(label);
+ window.getContent().addComponent(label);
layout = new VerticalLayout();
- window.getLayout().addComponent(layout);
- ((VerticalLayout) window.getLayout()).setExpandRatio(layout, 1);
+ window.getContent().addComponent(layout);
+ ((VerticalLayout) window.getContent()).setExpandRatio(layout, 1);
setup();
}
private Window window;
- private SplitPanel splitPanel;
private Layout layout;
public TestBase() {
|