blob: 543666c250b9750ea8b243f598e4d67e29ecba20 (
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
|
package com.vaadin.tests.components.window;
import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractReindeerTestUI;
import com.vaadin.ui.VerticalLayout;
import com.vaadin.ui.Window;
/**
*
* @since 7.1.9
* @author Vaadin Ltd
*/
public class ScrollingBodyElementWithModalOpened
extends AbstractReindeerTestUI {
@Override
protected void setup(VaadinRequest request) {
VerticalLayout verticalLayout = new VerticalLayout();
verticalLayout.setHeight("10000px");
Window window = new Window("Caption");
VerticalLayout layout = new VerticalLayout();
layout.setWidth("300px");
layout.setHeight("300px");
window.setContent(layout);
addWindow(window);
window.setModal(true);
addComponent(verticalLayout);
}
@Override
protected String getTestDescription() {
return "Screen must not scroll with modal opened.";
}
@Override
protected Integer getTicketNumber() {
return 12899;
}
}
|