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/components/label | |
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/components/label')
-rw-r--r-- | uitest/src/com/vaadin/tests/components/label/LabelStyles.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/uitest/src/com/vaadin/tests/components/label/LabelStyles.java b/uitest/src/com/vaadin/tests/components/label/LabelStyles.java index 6bf08f4ef6..9b8fc28844 100644 --- a/uitest/src/com/vaadin/tests/components/label/LabelStyles.java +++ b/uitest/src/com/vaadin/tests/components/label/LabelStyles.java @@ -42,17 +42,18 @@ public class LabelStyles extends AbstractTestUI { if (styleName != null) { p.setCaption(styleName); } - p.setContent(new GridLayout()); + GridLayout layout = new GridLayout(); + p.setContent(layout); // ((VerticalLayout) p.getContent()).setMargin(false); p.setSizeUndefined(); - p.getContent().setSizeUndefined(); + layout.setSizeUndefined(); for (int i = 0; i < labels; i++) { Label l = new Label("Label " + i); if (styleName != null) { l.setStyleName(styleName); } - p.addComponent(l); + layout.addComponent(l); } return p; |