I am developing a webapp that should "behave" like a traditional web
page, meaning that when the content grows in height the browser should
display a vertical scroll bar. Unfortunately I was foolish and jumped
right in on the new, shiny layout panels. As I found out later these
are not suitable for me, as they create a more "application-like" look
and feel with scrollbars displayed in the individual gwt panels
instead of the browser (try resizing e.g. google wave -> When the
available area is too small scrollbars will appear inside all the
panels, the browser will never display any scrollbars) and also they
are working with lots of fixed sizes (in my case the content is
dynamic).
I tried to achieve the traditional behavior with my LayoutPanels but
failed. I couldn't get the browser to display scrollbars, only inner-
panel scrolling, and stuffing a layoutpanel inside a scrollpanel is
not the desirable approach (stuffing layout panels inside non-layout
panels usually ended badly for me..).
So my conclusion is to revert to the "old school" panels. But I am
afraid that support of these will be dropped soon. What do you think?
Are there better alternatives? Anyone fought with a similar problem?
thanks for any suggestions,
Dennis
Olivier
What's the official policy on this?
On May 26, 11:49 am, Olivier Monaco <olivier.mon...@free.fr> wrote:
> For a "traditionnallayout", I use the "old school"panels. It's not
> really a old school, it just has another goal.
>
> Olivier
>
> On 26 mai, 10:33, googelybear <googelyb...@gmail.com> wrote:
>
>
>
> > Hi,
>
> > I am developing a webapp that should "behave" like atraditionalweb
> > page, meaning that when the content grows in height the browser should
> > display a vertical scroll bar. Unfortunately I was foolish and jumped
> > right in on the new, shinylayoutpanels. As I found out later these
> > are not suitable for me, as they create a more "application-like" look
> > and feel with scrollbars displayed in the individual gwtpanels
> > instead of the browser (try resizing e.g. google wave -> When the
> > available area is too small scrollbars will appear inside all the
> >panels, the browser will never display any scrollbars) and also they
> > are working with lots of fixed sizes (in my case the content is
> > dynamic).
> > I tried toachievethetraditionalbehaviorwith my LayoutPanels but
> > failed. I couldn't get the browser to display scrollbars, only inner-
> > panel scrolling, and stuffing a layoutpanel inside a scrollpanel is
> > not the desirable approach (stuffinglayoutpanelsinside non-layout
> >panelsusually ended badly for me..).
Olivier
Dennis
Be aware that Panels are for Quirks Mode and Layout are for Compliant/
Standard Mode. In the first mode, browser have many differences, which
Panels try to correct. In the second mode, there are, for recent
browser, less differences. I always write my pages as XHTML (strict if
possible) so I don't need many GWT complex component.
Finally, for website, I never use Panels like Stack, Dock... because
its not for website, it's for app. That the reason there must be
replaced by there Layout counterparts.
Olivier
I still think what "traditional behaviour" should be. (? not following
the standards?)
However, you don't want scrollbars at your LayoutPanel.
The reason why any widget gets a scrollbar is because it is larger
than its parent and the style overflow is set to auto or scroll.
When the "wrong" widget get a scrollbar you have to change the size of
the panel (div) hierarchy.
Or you have to allow the parents to grow with its child.
When you do not succeed you need to show us your code or at least the
hierarchy of panels.
Stefan Bachert
http://gwtworld.de