OK so assuming I have a wrapper class for the canvas that is placed in the
center element, I can get the size of the center-panel by:
this.getElement().getParentElement().getClientWidth();
I don't know if this is the proper way, but at least it works.
BUT again I could not get the RequiresResize to work.
What I succeeded is to attach a ResizeHandler to the whole browser window
like:
Window.addResizeHandler(new ResizeHanlder() {...});
This works, but is this a good idea to attach something to the whole
window? Should I be able to just attach a resize handler to the canvas
element (or its wrapper)?
--
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/-/z8LfNEqL3vYJ.
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.