Wednesday, December 28, 2011

Re: Help with resizing

All layout panels implement the onResize method. So you don't Have to extend the widget unless you are doing a custom Splitlayout panel.

Do you use the Splitlayout panel inside other panels? Also, i trust you are using rootlayout panel instead of rootpanel in the onModule method of your entrypoint

Since, I can't Access the entire thread over email I am assuming you are having Splitlayout panel inside another layout like a htmlpanel etc and expect it to resize on the change of view dimensions?

If thats the case on way to fire the onResize automatically is to use a place the splitlayoutpanel inside a ResizeLayoutPanel or for that matter any layout panels

~Ashwin


Sent from my iPhone

On Dec 28, 2011, at 1:08 PM, Mike Dee <mdichiappari@gmail.com> wrote:

> Played around with this a little more and came to a few conclusions.
> I am guessing that adding a ResizeHandler to SplitLayoutPanel has no
> effect because SplitLayoutPanel already implements onResize() - due to
> its implementing RequiresResize. I can see SplitLayoutPanel's
> onResize() being called by stepping through the code. The
> ResizeHandler I added is no where to be found.
>
> That leaves the option of deriving my own subclass of SplitLayoutPanel
> and then overriding onResize(). Easy enough EXCEPT how does one get
> such a class to work with uibinder?
>
> --
> 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.
>

--
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