是否有“页面渲染完成”提示GWT 中的事件?
我有一个小部件(第三方),它根据父元素的大小计算他的大小。它不起作用,因为在创建小部件期间父元素的大小为 0。仅当我在页面完全加载时显式调用 onResize() 方法时,它才有效。在 Scheduler.scheduleDeferred 中调用 onResize() 没有帮助,因为它是在页面渲染之前调用的。 如何识别页面已完全渲染并立即调用onResize?
I have a widget (third-party) that calculates his size depending on the size of parent element. It does not work because the size of parent element is 0 during the creating of the widget. It works only if I call the onResize() method explicitly when the page was completely loaded. Calling onResize() in Scheduler.scheduleDeferred does not help because it is calling before the page was rendered.
How can I recognize that the page is completely rendered and immediately call onResize?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Scheduler.get().scheduleEntry(Scheduler.RepeatingCommand)
可能就是您正在寻找的。Scheduler.get().scheduleEntry(Scheduler.RepeatingCommand)
might be what you're looking for.