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.

Building addon around javascript image slider

Dave Badia
5 years ago Jun 09, 2016 2:56am
Marco Collovati
5 years ago Jun 09, 2016 9:24am
Dave Badia
5 years ago Jun 10, 2016 1:43am
Marco Collovati
5 years ago Jun 10, 2016 7:06am
Dave Badia
5 years ago Jun 10, 2016 1:56pm
Marco Collovati
5 years ago Jun 10, 2016 2:13pm

Hi Dave,
seems like the problem depends on the width of the component; if you leave width undefined it doesn't work well.
I forgot to mention that in my previous test I set component to full size.
Try this in your demo UI

FlexSlider2 flexSlider2 = new FlexSlider2();
flexSlider2.setWidth("400px");
layout.addComponents(name, button, flexSlider2);

HTH
Marco

Dave Badia
5 years ago Jun 11, 2016 10:24pm