summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/tickets/Ticket1923.java
diff options
context:
space:
mode:
authorHenri Sara <hesara@vaadin.com>2012-11-14 13:49:47 +0200
committerHenri Sara <hesara@vaadin.com>2012-11-14 13:49:47 +0200
commitaca92f4937cc54f122b20c4bfb6288ee007c9e47 (patch)
tree7d7ee8e0cfa760e5f6b1da15ea8fe088f542540f /uitest/src/com/vaadin/tests/tickets/Ticket1923.java
parent1b7a4a1ee9e03f445cbfcbb520a5ac970ccf47de (diff)
downloadvaadin-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/Ticket1923.java')
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1923.java49
1 files changed, 29 insertions, 20 deletions
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1923.java b/uitest/src/com/vaadin/tests/tickets/Ticket1923.java
index 949acb6281..d9c8a34592 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1923.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1923.java
@@ -17,11 +17,13 @@ public class Ticket1923 extends com.vaadin.server.LegacyApplication {
.substring(getClass().getName().lastIndexOf(".") + 1));
setMainWindow(main);
- p = new Panel("TestPanel 250x300");
+ VerticalLayout pl = new VerticalLayout();
+ pl.setMargin(true);
+ p = new Panel("TestPanel 250x300", pl);
// p.getLayout().setWidth("100%");
// p.setContent(new GridLayout(1, 100));
for (int i = 0; i < ROWS; i++) {
- p.addComponent(new Label(
+ pl.addComponent(new Label(
"Label"
+ i
+ " 5067w09adsfasdjfahlsdfjhalfjhaldjfhalsjdfhlajdhflajhdfljahdslfjahldsjfhaljdfhaljfdhlajsdhflajshdflkajhsdlfkjahsldfkjahsldfhalskjfdhlksjfdh857idifhaljsdfhlajsdhflajhdflajhdfljahldfjhaljdfhalsjdfhalkjdhflkajhdfljahsdlfjahlsdjfhaldjfhaljfdhlajdhflajshdfljahsdlfjhalsjdfhalskjhfdlhusfglksuhdflgjshflgjhslfghslfjghsljfglsjhfglsjhfgljshfgljshflgjhslfghsljfgsljdfglsdjhfglsjhflgkjshfldjgh"));
@@ -38,40 +40,47 @@ public class Ticket1923 extends com.vaadin.server.LegacyApplication {
main.addComponent(p);
VerticalLayout ol = new VerticalLayout();
- p = new Panel("a");
- p.addComponent(new Label("Longer than caption"));
+ pl = new VerticalLayout();
+ pl.setMargin(true);
+ p = new Panel("a", pl);
+ pl.addComponent(new Label("Longer than caption"));
ol.addComponent(p);
main.addComponent(ol);
ol = new VerticalLayout();
- p = new Panel("captionasdfjahsdjfh this should be clipped god damn it");
+ pl = new VerticalLayout();
+ pl.setMargin(true);
+ p = new Panel("captionasdfjahsdjfh this should be clipped god damn it",
+ pl);
// p.getLayout().setSizeFull();
p.setWidth("50px");
p.setHeight("100px");
- p.addComponent(new Label(
+ pl.addComponent(new Label(
"aasdfaasdfja dslkfj lakfdj lakjdf lkaj dflkaj ldfkj alsdfj laksdj flkajs dflkj sdfsadfasdfasd"));
ol.addComponent(p);
main.addComponent(ol);
ol = new VerticalLayout();
- p = new Panel("300x-1");
+ pl = new VerticalLayout();
+ pl.setMargin(true);
+ p = new Panel("300x-1", pl);
// p.getLayout().setSizeFull();
p.setWidth("300px");
- p.addComponent(new Label("Short"));
- p.addComponent(new Label("Short"));
- p.addComponent(new Label("Short"));
- p.addComponent(new Label("Short"));
- p.addComponent(new Label("Short"));
- p.addComponent(new Label("Short"));
- p.addComponent(new Label("Short"));
- p.addComponent(new Label("Short"));
- p.addComponent(new Label("Short"));
- p.addComponent(new Label("Short"));
- p.addComponent(new Label("Short"));
- p.addComponent(new Label("Short"));
- p.addComponent(new Label("Short"));
+ pl.addComponent(new Label("Short"));
+ pl.addComponent(new Label("Short"));
+ pl.addComponent(new Label("Short"));
+ pl.addComponent(new Label("Short"));
+ pl.addComponent(new Label("Short"));
+ pl.addComponent(new Label("Short"));
+ pl.addComponent(new Label("Short"));
+ pl.addComponent(new Label("Short"));
+ pl.addComponent(new Label("Short"));
+ pl.addComponent(new Label("Short"));
+ pl.addComponent(new Label("Short"));
+ pl.addComponent(new Label("Short"));
+ pl.addComponent(new Label("Short"));
ol.addComponent(p);
main.addComponent(ol);