blob: 3032e03f463215fad5c3796271d6f9da02fd9e69 (
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
|
package com.vaadin.tests.components.table;
import com.vaadin.server.VaadinRequest;
import com.vaadin.shared.ui.ContentMode;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.ui.Button;
import com.vaadin.ui.Label;
import com.vaadin.v7.ui.Table;
public class ComponentsDisappearWhenScrolling extends AbstractTestUI {
@Override
protected void setup(VaadinRequest request) {
Label label = new Label(getDescription(), ContentMode.HTML);
addComponent(label);
Table table = new Table();
table.setSizeFull();
table.setCacheRate(1.1);
table.addContainerProperty(0, Button.class, null);
for (int i = 0; i < 100; i++) {
table.addItem(new Object[] { new Button() }, i);
}
addComponent(table);
}
@Override
public String getDescription() {
return "Scroll all the way down, then slowly back up. More often than"
+ " not this results in 'flattening' of several rows. This is "
+ "due to component connectors being unregistered on "
+ "components, which are on visible table rows.";
}
@Override
protected Integer getTicketNumber() {
return 7964;
}
}
|