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.Window;

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

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

@@ -324,17 +324,17 @@
 Height(%22
-4
+1
 00px%22);%0A
@@ -361,9 +361,9 @@
 th(%22
-4
+2
 00px
@@ -384,57 +384,24 @@
 ble.
-addContainerProperty(%22Column 1%22, String.class, %22%22
+setEnabled(false
 );%0A 
@@ -442,17 +442,17 @@
 %22Column 
-2
+1
 %22, Strin
@@ -470,121 +470,8 @@
 );%0A%0A
-        for (int i = 0; i %3C 100; ++i) %7B%0A            table.addItem(new Object%5B%5D %7B %22%22 + i, %22foo%22 %7D, i);%0A        %7D%0A%0A
     

Test case for #6870