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.

OrderedLayoutCSSCompatibility.java 754B

12345678910111213141516171819202122232425262728293031
  1. package com.vaadin.tests.layouts;
  2. import com.vaadin.tests.components.TestBase;
  3. import com.vaadin.ui.HorizontalLayout;
  4. import com.vaadin.v7.ui.TextField;
  5. public class OrderedLayoutCSSCompatibility extends TestBase {
  6. @Override
  7. protected String getDescription() {
  8. return "This test is to make sure that spacing/margins in OrderedLayout is still backwards compatible";
  9. }
  10. @Override
  11. protected Integer getTicketNumber() {
  12. return 2463;
  13. }
  14. @Override
  15. protected void setup() {
  16. HorizontalLayout l = new HorizontalLayout();
  17. l.setMargin(true);
  18. l.setSpacing(true);
  19. l.addComponent(new TextField("abc"));
  20. l.addComponent(new TextField("def"));
  21. addComponent(l);
  22. }
  23. }