blob: e4b57e2cbb1b31713a82e585d17ea868d037a287 (
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.TextField;
import com.itmill.toolkit.ui.VerticalLayout;
import com.itmill.toolkit.ui.Window;
public class Ticket2325 extends Application {
@Override
public void init() {
Window main = new Window("Testing....");
setMainWindow(main);
final VerticalLayout lo = new VerticalLayout();
lo.setSizeUndefined();
lo.setWidth("100%");
TextField tf = new TextField();
tf.setValue("The textfield should fill the window."
+ "\n - Try to resize window\n - Try to push REdo button");
tf.setRows(10);
tf.setWidth("100%");
lo.addComponent(tf);
Window subWin = new Window(
"This window should initially be as wide as the caption", lo);
main.addWindow(subWin);
// subWin.setWidth("500px");
}
}
|