Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Need Scroll bar in List Select

Soundar C
6 years ago Dec 30, 2015 11:52am
Joacim Päivärinne
6 years ago Jan 08, 2016 1:45pm
Soundar C
6 years ago Jan 09, 2016 3:57am
Joacim Päivärinne
6 years ago Jan 12, 2016 12:34pm
Soundar C
6 years ago Jan 18, 2016 4:24am
Joacim Päivärinne
6 years ago Jan 18, 2016 8:13am

Hey Soundarc,

Which theme and/or Vaadin version are you using? With the latest version, and Valo, I get the following the result (see attachment).

Java

@Override
protected void init(VaadinRequest request) {
  final VerticalLayout layout = new VerticalLayout();
  layout.setMargin(true);
  setContent(layout);

  ListSelect ls = new ListSelect();
  ls.setWidth("100px");
  for (int i = 0; i < 100; i++) {
    ls.addItem("Really Long Item #" + i);
  }

  layout.addComponents(ls);
}

SCSS

@import "../valo/valo.scss";

@mixin testing {
  @include valo;
  
  .v-select-select {
    overflow: auto;
  }
}

 

Mar Goli
5 years ago Aug 02, 2016 10:43am