blob: c086f51867babd94f3b2756ad194bccf62862172 (
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
|
package com.itmill.toolkit.tests.tickets;
import com.itmill.toolkit.Application;
import com.itmill.toolkit.ui.Button;
import com.itmill.toolkit.ui.ExpandLayout;
import com.itmill.toolkit.ui.Label;
import com.itmill.toolkit.ui.Window;
public class Ticket1934 extends Application {
@Override
public void init() {
Window w = new Window(
"#1934 : Horizontal ExpandLayout completely broken");
setMainWindow(w);
w.addComponent(new Label(
"Horizontal 500x200 ExpandLayout with two components:"));
ExpandLayout testedLayout = new ExpandLayout(
ExpandLayout.ORIENTATION_HORIZONTAL);
testedLayout.setWidth("500px");
testedLayout.setHeight("200px");
Button b1 = new Button("b1");
testedLayout.addComponent(b1);
testedLayout.expand(b1);
testedLayout.addComponent(new Button("b2"));
w.addComponent(testedLayout);
}
}
|