blob: a1d0fcb42b336bf2e6689168da6163a0f16c6462 (
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
|
package com.vaadin.tests.components.splitpanel;
import com.vaadin.server.Sizeable;
import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.HorizontalSplitPanel;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.Window;
public class SplitPanelInModalWindow extends TestBase {
@Override
public void setup() {
VerticalLayout vl = new VerticalLayout();
final Window modalWindow = new Window("Modeless Window", vl);
vl.setWidth(200, Sizeable.UNITS_PIXELS);
vl.setHeight(200, Sizeable.UNITS_PIXELS);
modalWindow.setModal(true); // This line causes the problem
getMainWindow().addWindow(modalWindow);
HorizontalSplitPanel splitPanel = new HorizontalSplitPanel();
splitPanel.setSplitPosition(20);
vl.addComponent(splitPanel);
}
@Override
protected String getDescription() {
return "Moving the splitter in the modal window should work as expected and not cause the application to freeze.";
}
@Override
protected Integer getTicketNumber() {
return 4067;
}
}
|