blob: 104476d8bf18dffb36e9d55a5179661f3a000558 (
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
38
39
40
41
42
43
44
45
46
|
package com.vaadin.tests.components.absolutelayout;
import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.AbsoluteLayout;
import com.vaadin.ui.HorizontalSplitPanel;
import com.vaadin.ui.VerticalSplitPanel;
import com.vaadin.v7.ui.TextArea;
public class AbsoluteLayoutResizing extends TestBase {
@Override
protected void setup() {
getLayout().setSizeFull();
AbsoluteLayout al = new AbsoluteLayout();
TextArea ta = new TextArea();
ta.setValue(
"When resizing the layout this text area should also get resized");
ta.setSizeFull();
al.addComponent(ta,
"left: 10px; right: 10px; top: 10px; bottom: 10px;");
HorizontalSplitPanel horizPanel = new HorizontalSplitPanel();
horizPanel.setSizeFull();
horizPanel.setFirstComponent(al);
VerticalSplitPanel vertPanel = new VerticalSplitPanel();
vertPanel.setSizeFull();
vertPanel.setFirstComponent(horizPanel);
addComponent(vertPanel);
}
@Override
protected String getDescription() {
return "Absolute layout should correctly dynamically resize itself";
}
@Override
protected Integer getTicketNumber() {
return 10427;
}
}
|