Hi everyone,
let’s say I have the following simple application:
[code]
@Theme(“mytheme”)
public class MyUI extends UI {
@Override
protected void init(VaadinRequest vaadinRequest) {
VerticalSplitPanel panel = new VerticalSplitPanel();
panel.setHeight(100, Unit.PIXELS);
VerticalLayout vlayoutFirst = new VerticalLayout();
vlayoutFirst.setHeight(500, Unit.PIXELS);
VerticalLayout vlayoutSecond = new VerticalLayout();
vlayoutSecond.setHeight(500, Unit.PIXELS);
panel.setFirstComponent(vlayoutFirst);
panel.setSecondComponent(vlayoutSecond);
setContent(panel);
}
@WebServlet(urlPatterns = "/*", name = "MyUIServlet", asyncSupported = true)
@VaadinServletConfiguration(ui = MyUI.class, productionMode = false)
public static class MyUIServlet extends VaadinServlet {
}
}
[/code]I am using a VerticalSplitPanel and set VerticalLayouts as first and second components. The VerticalSplitPanel has a fixed height of 100 pixels. Both VerticalLayouts have a fixed height of 500 pixels, which means, that you will see a scrollbar in the first and second part of the VerticalSplitPanel.
Now my question is: Is it possible to hide this scrollbar (disable scrolling) for only the first part of the VerticalSplitPanel but leave it like it is for the second part?