Hmm
I have seen this before but I can't remember how I solved it.
My gut reaction hints are:
1) Try to make scrollPanel 100% height (and width) and see what happens.
You can try that directly in browser inspection tools - it will give you a
good grasp on how gwt widgets map to html elements
2) Try to make the central Widget a resizeLayoutPanel - shouldn't needed
but who knows.
Generally using the inspector tools and trying to debug the ProvidesResize,
RequiresResize chain will give you the solution.
Vassilis
On Tue, Feb 10, 2015 at 10:44 PM, Nicholas Smith <[email protected]>
wrote:
> My bug was due to having introduced a second instance of my template, so
> when calling to update content it as on the second instance, not the one
> actually being displayed.
>
> I tried switching from DockLayoutPanel to HeaderPanel as suggested
> by Vassilis, but I can't get the content area to be scrollable. Here's the
> two versions of code, and screenshots that show the issue. Does anyone know
> what the problem is?
>
> Here's the two versions of my code. First up, this uses DockLayoutPanel,
> and renders correctly.
>
> http://pastebin.com/DHqXmBp7
>
> See screenshot: http://snag.gy/v9pgY.jpg
>
> And here's the version with HeaderPanel, the center content is not
> scrollable.
>
> http://pastebin.com/4yEhKC4A
>
> And the screenshot: http://snag.gy/jFB3P.jpg
>
>
>
>
>
> On Tuesday, February 10, 2015 at 2:36:53 AM UTC-6, Vassilis Virvilis wrote:
>>
>> Furthermore I would suggest the HeaderPanel (terrible name - but very
>> cool widget) instead of the DockLayoutPanel so your header and footer can
>> be __naturally__ sized without having to specify exact size.
>>
>> Vassilis
>>
>> On Tue, Feb 10, 2015 at 12:55 AM, Jens <[email protected]> wrote:
>>
>>> Put a SimplePanel in your DockLayoutPanel and then set the ActionBar
>>> into that SimplePanel using SimplePanel.setWidget().
>>>
>>> In your setActionBar() method call SimplePanel.setWidget(newBar) to
>>> replace the old ActionBar with the new one.
>>>
>>> So you basically put a container widget into your DockLayoutPanel and
>>> then update the contents of the container widget through your setter method.
>>>
>>>
>>> -- J.
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Google Web Toolkit" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Vassilis Virvilis
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>
--
Vassilis Virvilis
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.