Friday, September 10, 2010

Re: PagingScrollTable Auto Resize

query the container widget's size in a deferred command (http://
code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/
google/gwt/user/client/DeferredCommand.java?r=1061
)
so the browser has time to calculate the containers size before you
ask for it

On 10 Sep., 18:06, Maurice <maurice.ocon...@gmail.com> wrote:
> Hi,
>
> I understand that a PagingScrollTable must have its size specified in
> pixels.
>
> So far I have successfully created a PagingScrollTable and setup a
> handler to listen for browser resize events like so:
>
>    Window.addResizeHandler(new ResizeHandler() {...})
>
> When I resize the browser my PagingScrollTable is resized correctly.
>
> However, when it initially loads, it does not fill the widget
> containing it. When I query the container widget's size from its
> presenter I get 0.
>
> Has anyone got a solution for this?
>
> Thanks!
>
> Maurice

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment