I have a GWT Canvas which I would like to size to the allocated width/ height of it's container Widget. In my case I have a LayoutContainer whose size is 30% width so it varies depending on the window size.
I can use onResize() to detect when the size has changed but how do I size the canvas initially to the proper size? When my class gets constructed the size is zero so I can't do it in the constructor. Is there an event/callback that I can use to detect the layout size at startup so I can create the canvas and draw it with the appropriate sizes? In android land I have an onLayout() callback that is convenient for this type of initialization. Is there something similar for GWT? Thanks, Glenn -- 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.
