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.

ExtraLargeSubWindow.java 1010B

1234567891011121314151617181920212223242526272829303132333435
  1. package com.vaadin.tests.components.window;
  2. import com.vaadin.tests.components.TestBase;
  3. import com.vaadin.ui.NativeButton;
  4. import com.vaadin.ui.VerticalLayout;
  5. import com.vaadin.ui.Window;
  6. public class ExtraLargeSubWindow extends TestBase {
  7. @Override
  8. protected void setup() {
  9. VerticalLayout layout = new VerticalLayout();
  10. layout.setMargin(true);
  11. layout.setSizeFull();
  12. Window w = new Window("full sized window", layout);
  13. w.setWidth("2000px");
  14. w.setHeight("2000px");
  15. NativeButton b = new NativeButton("A large button");
  16. b.setSizeFull();
  17. layout.addComponent(b);
  18. getMainWindow().addWindow(w);
  19. }
  20. @Override
  21. protected String getDescription() {
  22. return "A 100%x100% sub window should not produce scrollbars in the main view or in the sub window. The button inside the sub window is 100%x100%, as is the layout";
  23. }
  24. @Override
  25. protected Integer getTicketNumber() {
  26. return 3407;
  27. }
  28. }