blob: b7690c375fb96a269db717f3d521dc10ca7a4d03 (
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
|
package com.itmill.toolkit.tests.tickets;
import com.itmill.toolkit.Application;
import com.itmill.toolkit.ui.Button;
import com.itmill.toolkit.ui.GridLayout;
import com.itmill.toolkit.ui.Window;
public class Ticket2411 extends Application {
@Override
public void init() {
Window w = new Window(getClass().getSimpleName());
setMainWindow(w);
// VerticalLayout l = new VerticalLayout();
GridLayout l = new GridLayout();
w.setLayout(l);
l.setHeight("504px");
for (int i = 1; i <= 5; i++) {
Button b = new Button("Button " + i
+ " should be 100px or 101px high");
b.setHeight("100%");
l.addComponent(b);
}
}
}
|