You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TableHeaderZoom.java 968B

123456789101112131415161718192021222324252627282930313233343536
  1. package com.vaadin.tests.components.table;
  2. import com.vaadin.tests.components.TestBase;
  3. import com.vaadin.ui.CssLayout;
  4. import com.vaadin.ui.LegacyWindow;
  5. import com.vaadin.ui.Table;
  6. public class TableHeaderZoom extends TestBase {
  7. @Override
  8. protected void setup() {
  9. Table table = new Table();
  10. table.setHeight("400px");
  11. table.setWidth("400px");
  12. table.addContainerProperty("Column 1", String.class, "");
  13. table.addContainerProperty("Column 2", String.class, "");
  14. for (int i = 0; i < 100; ++i) {
  15. table.addItem(new Object[] { "" + i, "foo" }, i);
  16. }
  17. LegacyWindow main = getMainWindow();
  18. main.setContent(new CssLayout());
  19. main.addComponent(table);
  20. }
  21. @Override
  22. protected String getDescription() {
  23. return "Table header text/icon disappears when zooming out";
  24. }
  25. @Override
  26. protected Integer getTicketNumber() {
  27. return 6870;
  28. }
  29. }