Try the following:

                 Scheduler.get().scheduleDeferred(new ScheduledCommand() {



                    @Override

                    public void execute() {

                        // Try to get the size here ...

                    }

                });

Regards,

Alfredo

On Sat, Dec 10, 2011 at 4:14 PM, Thomas Lefort <[email protected]>wrote:

> Thanks! Just tried, sounded like a great idea, but it doesn't work
> unfortunately. It's really as if the widgets I add inside the panel
> are rendered/added after. Really strange...
>
>
> On Dec 9, 9:19 pm, Jens <[email protected]> wrote:
> > You can use
> >
> > popupPanel.setPopupPositionAndShow(new PositionCallback() {
> >
> >   public void setPosition(int offsetWidth, int offsetHeight) {
> >      //do your calculations. Offset sizes shouldn't be 0 here
> >   }
> >
> > });
> >
> > -- J.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

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

Reply via email to