package com.vaadin.tests.components; import com.vaadin.tests.util.TestUtils; import com.vaadin.ui.CssLayout; import com.vaadin.ui.Label; public class TooltipsOnScrollingWindow extends TestBase { @Override protected void setup() { TestUtils .injectCSS( getMainWindow(), ".v-generated-body { overflow: auto; } " + ".v-app, .v-ui { overflow: visible !important;}" + ".hoverable-label { position: fixed; bottom: 10px; right: 10px; }" + ".hidden-label { position: absolute; top: 2000px; left: 2000px;}"); getLayout().getParent().setHeight("4000px"); getLayout().getParent().setWidth("4000px"); getLayout().setHeight("4000px"); getLayout().setWidth("4000px"); CssLayout layout = new CssLayout(); layout.setHeight("4000px"); layout.setWidth("4000px"); addComponent(layout); Label hoverableLabel = new Label("Hover me"); hoverableLabel.setId("hoverable-label"); hoverableLabel.setStyleName("hoverable-label"); hoverableLabel.setWidth("-1px"); hoverableLabel.setDescription("Tooltip"); layout.addComponent(hoverableLabel); Label hiddenLabel = new Label("Hidden"); hiddenLabel.setStyleName("hidden-label"); hiddenLabel.setWidth("-1px"); layout.addComponent(hiddenLabel); getMainWindow().scrollIntoView(hiddenLabel); } @Override protected String getDescription() { return "Tooltip is displayed in the wrong place when component is at lower edge of the screen and application with following the css is scrolled vertically."; } @Override protected Integer getTicketNumber() { return 9862; } } C-docs-link-syntax Vaadin 6, 7, 8 is a Java framework for modern Java web applications: https://github.com/vaadin/frameworkwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/tests/featurebrowser/IntroItemContainers.java
blob: 3e584120b700ef28d3f165af20e0f45fe4942ac7 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98