getWidth() / getHeight() ?
Panels in a DockLayoutPanel (or any layout panel) are always resized to the 
"layer" dimensions, so you shouldn't even need the 100% CSS rules. The idea 
would be to get the "external dimensions" of the widget and apply them as 
the "coordinate-space dimensions" of the canvas.

On Friday, January 18, 2013 2:11:55 PM UTC+1, membersound wrote:
>
> I alread though about extending ResizeComposite as a Wrapper for the 
> canvas. But it gives me the following error:
> java.lang.AssertionError: LayoutComposite requires that its wrapped widget 
> implement RequiresResize
>
>
> Else if I use:
>  extends Composite implements RequiresResize {
>     @Override
>     public void onResize() {
>         System.out.println("on resize");
>     }
> }
>
> then nothing happens if I resize the browser. No sysout.
>
>
> 2nd problem: how do I know the correct setCoordinateSpaceHeight() that I 
> have to set? Where can I get it from? I know Window.getClientHeight() but 
> this would give me the whole window size. I just need the one for the 
> canvas, or rather the size of the g:center area where the canvas should 
> take 100% of the size...
>
> Any ideas?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Qj031sUs25wJ.
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