You need to initiate the sizing of the canvas after the real sizing fo the wrapper components is done.
What I mean is, this wrapp has some kind of layout logic(usually this layouts are not happening before the comp becomes attached and visible) . So u need to lesten for this "event", and after this is done to use wrap.getSize and set this size on the canvas. In this moment the wrap.size will have the correct values...
On Thursday, May 21, 2015 at 11:39:25 PM UTC+2, eho...@usdataworks.com wrote:
-- What I mean is, this wrapp has some kind of layout logic(usually this layouts are not happening before the comp becomes attached and visible) . So u need to lesten for this "event", and after this is done to use wrap.getSize and set this size on the canvas. In this moment the wrap.size will have the correct values...
On Thursday, May 21, 2015 at 11:39:25 PM UTC+2, eho...@usdataworks.com wrote:
The deferred command works most of the time, but not always. I'm seeing a zero height and width about 5% of the time in Chrome.Anyone have other ideas?
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment