diff options
author | Henri Sara <hesara@vaadin.com> | 2012-11-14 13:49:47 +0200 |
---|---|---|
committer | Henri Sara <hesara@vaadin.com> | 2012-11-14 13:49:47 +0200 |
commit | aca92f4937cc54f122b20c4bfb6288ee007c9e47 (patch) | |
tree | 7d7ee8e0cfa760e5f6b1da15ea8fe088f542540f /uitest/src/com/vaadin/tests/tickets/Ticket2221.java | |
parent | 1b7a4a1ee9e03f445cbfcbb520a5ac970ccf47de (diff) | |
download | vaadin-framework-aca92f4937cc54f122b20c4bfb6288ee007c9e47.tar.gz vaadin-framework-aca92f4937cc54f122b20c4bfb6288ee007c9e47.zip |
Panel and Window based on AbstractSingleComponentContainer (#2924)
Change-Id: I9eb1f40a02dcad0f756ad2518d86ef1c52aa69c2
Diffstat (limited to 'uitest/src/com/vaadin/tests/tickets/Ticket2221.java')
-rw-r--r-- | uitest/src/com/vaadin/tests/tickets/Ticket2221.java | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2221.java b/uitest/src/com/vaadin/tests/tickets/Ticket2221.java index 692b5ad86b..80aaf55845 100644 --- a/uitest/src/com/vaadin/tests/tickets/Ticket2221.java +++ b/uitest/src/com/vaadin/tests/tickets/Ticket2221.java @@ -67,22 +67,26 @@ public class Ticket2221 extends LegacyApplication { tf.setHeight("1000px"); tf.setWidth("1000px"); - outerPanel = new Panel(); + VerticalLayout outerLayout = new VerticalLayout(); + outerLayout.setMargin(true); + outerPanel = new Panel(outerLayout); outerPanel.setCaption("A RichTextArea"); outerPanel.setVisible(false); outerPanel.setHeight("1000px"); outerPanel.setWidth("1000px"); - outerPanel.getContent().setSizeFull(); - Panel innerPanel = new Panel("Inner panel"); + outerLayout.setSizeFull(); + VerticalLayout innerLayout = new VerticalLayout(); + innerLayout.setMargin(true); + Panel innerPanel = new Panel("Inner panel", innerLayout); innerPanel.setSizeFull(); - outerPanel.addComponent(innerPanel); + outerLayout.addComponent(innerPanel); tf2 = new TextField("A 2000x2000 textfield"); tf2.setWidth("2000px"); tf2.setHeight("2000px"); - innerPanel.addComponent(tf2); + innerLayout.addComponent(tf2); main.addComponent(outerPanel); main.addComponent(tf); } |