12345678910111213141516171819202122232425262728293031323334353637383940 |
- 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;
- }
-
- }
|