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/-/iJN18dIhlSQJ.
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.