aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/components/table/TableHeaderZoom.java
blob: ef26f73f92ee4cce8313ba83c3a9eca0f43c94da (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.table;

import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.CssLayout;
import com.vaadin.ui.Table;
import com.vaadin.ui.UI.LegacyWindow;

public class TableHeaderZoom extends TestBase {

    @Override
    protected void setup() {
        Table table = new Table();
        table.setHeight("400px");
        table.setWidth("400px");
        table.addContainerProperty("Column 1", String.class, "");
        table.addContainerProperty("Column 2", String.class, "");

        for (int i = 0; i < 100; ++i) {
            table.addItem(new Object[] { "" + i, "foo" }, i);
        }

        LegacyWindow main = getMainWindow();
        main.setContent(new CssLayout());
        main.addComponent(table);
    }

    @Override
    protected String getDescription() {
        return "Table header text/icon disappears when zooming out";
    }

    @Override
    protected Integer getTicketNumber() {
        return 6870;
    }
}