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.

CompatibilityGridScrollDownResize.java 1.1KB

12345678910111213141516171819202122232425262728293031323334
  1. package com.vaadin.tests.components.grid;
  2. import com.vaadin.server.VaadinRequest;
  3. import com.vaadin.tests.components.AbstractTestUI;
  4. import com.vaadin.tests.minitutorials.v7_4.GridExampleHelper;
  5. import com.vaadin.ui.VerticalLayout;
  6. import com.vaadin.v7.ui.Grid;
  7. public class CompatibilityGridScrollDownResize extends AbstractTestUI {
  8. @Override
  9. protected void setup(VaadinRequest request) {
  10. // container with at least 100 rows
  11. final Grid grid = new Grid(GridExampleHelper.createContainer());
  12. grid.setSizeFull();
  13. addComponent(grid);
  14. getLayout().setSizeFull();
  15. getLayout().setExpandRatio(grid, 2);
  16. ((VerticalLayout) getLayout().getParent()).setSizeFull();
  17. }
  18. @Override
  19. protected Integer getTicketNumber() {
  20. return 11893;
  21. };
  22. @Override
  23. protected String getTestDescription() {
  24. return "Scrolling all the way down, resizing the browser window smaller "
  25. + "so that one row gets completely hidden, and scrolling down "
  26. + "again should keep the row contents consistent and in expected "
  27. + "sequence.";
  28. }
  29. }