On Tue, Jun 15, 2010 at 10:49 AM, Magnus <[email protected]>wrote:

>
> BTW: I wonder why you use this construct:
>
>  int parentH = dock.getWidgetContainerElement(this).getOffsetHeight();
>
> Why not simply call:
>
> doc.getParent ().gettOffsetHeight(); ?
>
> The latter code would also be usable for parents that are no
> DockLayoutgPanel. Is there a special reason?
>
>
Hi Magnus,

Because I want to center the widget into the Dock.CENTER layer, and not the
whole DockLayoutPanel. Try to make the change and you will see the
difference.

Glad that the code snippet help you.
Alejandro

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