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.

Ticket2296.java 884B

123456789101112131415161718192021222324252627282930313233
  1. package com.vaadin.tests.tickets;
  2. import com.vaadin.server.LegacyApplication;
  3. import com.vaadin.ui.Button;
  4. import com.vaadin.ui.CustomLayout;
  5. import com.vaadin.ui.LegacyWindow;
  6. public class Ticket2296 extends LegacyApplication {
  7. @Override
  8. public void init() {
  9. LegacyWindow w = new LegacyWindow(getClass().getSimpleName());
  10. setMainWindow(w);
  11. setTheme("tests-tickets");
  12. CustomLayout cl = new CustomLayout("Ticket2296");
  13. cl.setSizeFull();
  14. Button b = new Button("100%x100% button");
  15. b.setSizeFull();
  16. cl.addComponent(b, "button1");
  17. b = new Button("100%x100% button");
  18. b.setSizeFull();
  19. cl.addComponent(b, "button2");
  20. b = new Button("50%x50% button");
  21. b.setWidth("50%");
  22. b.setHeight("50%");
  23. cl.addComponent(b, "button3");
  24. w.setContent(cl);
  25. }
  26. }