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.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 2 weeks ago
Scrollbar's Layout on Panel
Hello, i am newbie on vaadin and I met some difficulties.. I am trying to add scrollbar on my Layout which are on a Panel.
I have 1 panel, 1 horizontal split and 2 Layout which each contains, 2 tables. (excuse me for my language :p)
pan = new Panel();
testPanel = new HorizontalSplitPanel();
testPanel.setWidth(100, Unit.PERCENTAGE);
testPanel.setSplitPosition(50, Unit.PERCENTAGE);
h1 = new VerticalLayout();
h1.setSizeFull();
h2 = new VerticalLayout();
h2.setSizeFull();
tableDose = new Table();
tableDose.setWidth(600, Unit.PIXELS);
tableDose.setSelectable(true);
tableDose.setImmediate(true);
tableDose.setCaption("Liste : ");
tableDose.addContainerProperty("Nom de l'accident type", String.class, null);
tableDose.addContainerProperty("Point de rejet", String.class, null);
tableDose.addContainerProperty("Rejet", String.class, null);
tableDose.addContainerProperty("Défaut", String.class, null);
tableDose.setPageLength(4);
table1 = new Table();
table1.setSelectable(true);
table1.setImmediate(true);
table1.setCaption("Liste : ");
table1.addContainerProperty("Nom de l'accident type", String.class, null);
table1.addContainerProperty("Point de rejet", String.class, null);
table1.addContainerProperty("Rejet", String.class, null);
table1.addContainerProperty("Défaut", String.class, null);
table1.setPageLength(6);
b1 = new Button();
b2 = new Button();
this.setSizeFull();
this.addComponent(pan);
pan.setContent(testPanel);
testPanel.setFirstComponent(l1);
testPanel.setSecondComponent(l2);
h1.addComponents(tableDose, b1);
h2.addComponents(table1, b2);
With this code, when I move my horizontal split on the left or right, I don't have scrollbar on my layout, so I can't see all my tables... How can I do ?
examples on pictures :
http://www.hostingpics.net/viewer.php?id=381893401.jpg
http://www.hostingpics.net/viewer.php?id=432976242.jpg
Last updated on
You cannot reply to this thread.