0. Make sure you are in STANDARDS mode.
1. Use StackLayoutPanel and add it to your parent LayoutPanel ( mixing
StackPanel with a DockLayoutPanel gives unpredictable results - so some
one has said & I have found out the hard way )
2. Set the width and height to 100%
3. For the container widget ( FlowPanel / HTMLPanel ) you add to the
StackLayoutPanel, put a CSS overflow: auto. This indicates that if
whatever the container contains grows beyond the container then a scroll
bar is shown. If you have a container within a container, and overflow
setting should be on the right container - just above the element whose
overflow you want to control. Firebug usually helps me figure out this.
Review the container hierarchy using Firebug to make sure that there are
no intermediate containers which makes your setting ineffective.
Hope this helps.
- Prashant
On 21-07-2010 10:58, Magnus wrote:
> Hi Prashant,
>
> I have done everything you said, with some losings, but also without
> success (scrollbars):
>
> - I changed the StackPanel into a StackLayoutPanel
>
> - then, the CSS padding (10px) has no effect anymore
> (the stack is aligned directly at the left edge, without space, but
> ok)
>
> - I added overflow:auto to the inner CSS container, which is a
> VerticalPanel
>
> - but there is no scrollbar...
>
> Why doesn't ScrollPanel work here?
>
> Magnus
>
>
> On Jul 21, 5:32 am, Prashant Hegde<prashant.he...@gmail.com> wrote:
>
>> The way I would go about doing this is as follows, see if this works for
>> you or gives any hints:
>>
>> 0. Make sure you are in STANDARDS mode.
>> 1. Use StackLayoutPanel and add it to your parent LayoutPanel ( mixing
>> StackPanel with a DockLayoutPanel gives unpredictable results - so some
>> one has said& I have found out the hard way )