blob: 8349c829110c9b97eb537c65a9cf763cfd89061c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
package com.vaadin.tests.components.window;
import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.Button;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.Window;
public class SubwindowInvalidLayout extends TestBase {
@Override
protected String getDescription() {
return "The subwindow contains an invalid layout, which analyze layouts should detect.";
}
@Override
protected Integer getTicketNumber() {
return 3096;
}
@Override
protected void setup() {
VerticalLayout layout = new VerticalLayout();
layout.setMargin(true);
Window window = new Window("Sub window", layout);
window.center();
VerticalLayout vl = new VerticalLayout();
vl.setWidth(null);
Button b = new Button("A 100% wide button, invalid");
b.setWidth("100%");
vl.addComponent(b);
layout.addComponent(vl);
getMainWindow().addWindow(window);
}
}
|