Home:ALL Converter>Vaadin cuts off (not scrollable) when screen size changed

Vaadin cuts off (not scrollable) when screen size changed

Ask Time:2016-05-04T22:34:50         Author:alecrosic

Json Formatter

I have a vaadin layout that works fine on a larger screen. As soon as the screen size (and the resolution) drop, all the contents get cut off and no scrollbar appears.

I tried using a Panel to remedy the issue, but the panel likewise gets cut off.

Panel panel = new Panel();
panel.setContent(horizontalSplit);
panel.setSizeFull();
panel.getContent().setSizeUndefined();

I also tried using

Responsive.makeResponsive(horizontalSplit)

but it still cuts off

Any suggestions?

Author:alecrosic,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/37030882/vaadin-cuts-off-not-scrollable-when-screen-size-changed
Dragan Radevic :

If you set \n\npanel.setSizeFull();\n\n\nand\n\npanel.getContent().setSizeUndefined();\n\n\nthen it is normally to content be cutt of on small screens.\n\nSolution is to setSizeFull() on panel content too.",
2016-05-05T10:24:55
yy