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.

AccordionInactiveTabSize.java 1.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. package com.vaadin.tests.components.accordion;
  2. import com.vaadin.tests.components.TestBase;
  3. import com.vaadin.ui.Accordion;
  4. import com.vaadin.ui.HorizontalSplitPanel;
  5. import com.vaadin.ui.TabSheet.Tab;
  6. import com.vaadin.ui.TextField;
  7. public class AccordionInactiveTabSize extends TestBase {
  8. @Override
  9. protected String getDescription() {
  10. return "Select the second tab and move the splitter to the right. Both the inactive and the active tab should be resized.";
  11. }
  12. @Override
  13. protected Integer getTicketNumber() {
  14. return 3065;
  15. }
  16. @Override
  17. protected void setup() {
  18. HorizontalSplitPanel sp = new HorizontalSplitPanel();
  19. sp.setWidth("100%");
  20. sp.setHeight("100px");
  21. Accordion acc = new Accordion();
  22. Tab tab1 = acc.addTab(new TextField("first field"));
  23. tab1.setCaption("First tab");
  24. Tab tab2 = acc.addTab(new TextField("second field"));
  25. tab2.setCaption("Second tab");
  26. acc.setSizeFull();
  27. sp.addComponent(acc);
  28. addComponent(sp);
  29. }
  30. }