Browser-level scrollbars are completely disabled when using RootLayoutPanel in GWT 2.1.1, how can I re-enable them?

I work with GWT 2.1.1, every time I use RootLayoutPanel instead of RootPanel in my EntryPoint class, the scroll bars for the browser are completely disabled, so when my content doesn't fit on the screen there is no way to get to it.

How to use the new Layout based Panel classes that require a RootLayoutPanel and still get automatically displayed and disappearing scroll bars at the browser level.

I am NOT talking about putting things in a ScrollPanel . I want the browser scrollbar behavior to be RootPanel , but with RootLayoutPanel .

How do you get TabLayoutPanel to autocomplete a page and so that the browser automatically creates scroll bars for the entire page?

I tried to put overflow: auto; my RootLayoutPanel , as suggested below, is not affected.

+4
source share
1 answer

This is a design. Layout panels do not change based on their contents; they change their contents based on their own size. Thus, depending on what you want, either you should not use layout panels, or you will have to create scrollbars (you can just use the CSS overflow property, you should not use ScrollPanel ),

+5
source

Source: https://habr.com/ru/post/1343420/


All Articles