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