Hi,

You can retrieve the container element of your center and then get height
and width.

Widget centerWidget = ... ; // the widget at center
Element container =
myDockLayoutPanel.getWidgetContainerElement(centerWidget);
int width = container.getOffsetWidth();
int height = container.getOffsetHeight();

Alexandre.


2011/4/12 Matthew Hill <[email protected]>

> Hi.
>
> I need to make a canvas element within the center panel of a
> DockLayoutPanel. However, to make a canvas, I must know the width and height
> which it will occupy.
>
> How can I obtain the width and height of the center area of a
> DockLayoutPanel?
>
> --
> 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.
>

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