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.

ComboBoxAtBottomEdgeWithinHorizontalLayout.java 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. package com.vaadin.tests.components.combobox;
  2. import java.util.Arrays;
  3. import com.vaadin.server.VaadinRequest;
  4. import com.vaadin.tests.components.AbstractTestUI;
  5. import com.vaadin.ui.Alignment;
  6. import com.vaadin.ui.ComboBox;
  7. import com.vaadin.ui.HorizontalLayout;
  8. public class ComboBoxAtBottomEdgeWithinHorizontalLayout extends AbstractTestUI {
  9. @Override
  10. protected void setup(VaadinRequest request) {
  11. ComboBox<Integer> comboBox = new ComboBox<>();
  12. comboBox.setItems(Arrays.asList(102, 205, 302, 402, 500));
  13. HorizontalLayout horizontalLayout = new HorizontalLayout();
  14. horizontalLayout.addComponent(comboBox);
  15. getLayout().addComponent(horizontalLayout);
  16. getLayout().setComponentAlignment(horizontalLayout,
  17. Alignment.BOTTOM_RIGHT);
  18. getLayout().setSizeFull();
  19. getLayout().getParent().setSizeFull();
  20. }
  21. @Override
  22. protected Integer getTicketNumber() {
  23. return 11866;
  24. }
  25. @Override
  26. protected String getTestDescription() {
  27. return "ComboBox at bottom edge should open popup above "
  28. + "even when within HorizontalLayout.";
  29. }
  30. }