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, 1 month ago
Bug? Modal Window & Split Panel
Hello again everyone,
I am back after being away for quite a while -_-
There seems to be a problem with SplitPanel when put in a modal window.
If you try to move the split bar, the window freezes and you have to refresh the page to have it working again.
I have to add that everything is fine with a modeless window.
Here is the code I use to reproduce this issue:
final Window mainWindow = new Window("Test for split panel in a modal window");
setMainWindow(mainWindow);
VerticalLayout vl = new VerticalLayout();
final Window modalWindow = new Window("Modeless Window", vl);
vl.setWidth(200, Sizeable.UNITS_PIXELS);
vl.setHeight(200, Sizeable.UNITS_PIXELS);
modalWindow.setModal(true); // This line causes the problem
mainWindow.addWindow(modalWindow);
SplitPanel splitPanel = new SplitPanel(SplitPanel.ORIENTATION_HORIZONTAL);
splitPanel.setSplitPosition(20);
vl.addComponent(splitPanel);
VerticalLayout leftLayout = new VerticalLayout();
splitPanel.setFirstComponent(leftLayout);
VerticalLayout rightLayout = new VerticalLayout();
rightLayout.addComponent(new Label ("Sample Label"));
splitPanel.setSecondComponent(rightLayout);
Thanks,
Houman
Last updated on Jan, 25th 2010
Seems like a bug. I created http://dev.vaadin.com/ticket/4067 for it.
EDIT: Fixed it, try the next nightly build.
Last updated on Jan, 25th 2010
You cannot reply to this thread.