Tuesday, May 31, 2011

Canvas dimensions


I have a canvas in a hidden panel. It is created before the panel is
made visible. The problem I'd like to set its DOM width to 100% but I
have a problem with the setCoordinateSpaceWidth then as I cannot get
the canvas dimension via getOffsetWidth as the canvas is not visible.
I don't even think I can add a resizeevent to Canvas nor is there a
VisibleEvent. Would appreciate if anybody had an idea as to how to
circumvent the problem?



You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment