No scrollbar shown in a Panel with Absolute layout

I have a Panel and it has content as Absolute Layout. I do not see any vertical scroll-bar in this case.

However if for the same Panel if I change the content to be Vertical scroll-bar then I see the scroll-bar.

How can I enable Vertical and Horizontal scroll bars when the content of the Panel is Absolute Layout?

Some sample code

Panel p = new Panel();
p.setSizeFull();

-----THIS DOES NOT ENABLE ANY SCROLL BAR
p.setContent(new AbsoluteLayout());
p.getContent().setSizeFull();

-----THIS DOES ENABLE SCROLL BAR
p.setContent(new VerticalLayout());
p.getContent().setSizeFull();

Please help!!

Hi,

Strange: setSizeFull() will make the layouts 100% in both directions and should never produce scrollbars. I’m guessing the scrollbars come from whatever is inside the layouts, and the ‘slot’ in the AbsolulteLayout does not have a set height.

Best Regards,
Marc