开发者

Browser level scroll bars are completely disabled when using RootLayoutPanel in GWT 2.1.1, how do I re-enabled them?

开发者 https://www.devze.com 2023-02-16 04:28 出处:网络
I am working with GWT 2.1.1, every time I use RootLayoutPanel instead of RootPanel in my EntryPoint class, the scroll bars for the browser gets completely disabled, so when my content doesn\'t fit on

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

How do I use the new Layout based Panel classes that require RootLayoutPanel and still get my auto-appearing and disappearing scroll bars at the Browser level.

I am NOT talking about putting stuff in a ScrollPanel I want the browser scroll bar beha开发者_运维问答vior that RootPanel provides, but with a RootLayoutPanel.

How do you get a TabLayoutPanel to autofill the page and have the browser automatically produce scroll bars for the entire page?

I tried putting overflow: auto; on my RootLayoutPanel as suggested below, has no affect.


This is by-design. Layout panels do not resize based on their content, they resize their content based on their own size. So, depending on what you want, either you shouldn't use layout panels, or you'd have to make panels scrollables (you can just use the overflow CSS property, you're not forced to use a ScrollPanel)

0

精彩评论

暂无评论...
验证码 换一张
取 消