Dojo布局渲染问题
在此示例中按 F5:DojoToolkit。
首先显示内容,然后布局进入最终状态。在我的应用程序中,我想要相反的情况,以便渲染布局,然后显示内容。我不希望加载时出现“跳跃”现象。有可能以某种方式解决这个问题吗?
Press F5 in this example: DojoToolkit.
First the content is shown, and after that the layout gets into it's final state. In my application I want the opposite, so that the layout gets rendered, and after that the content is displayed. I don't want that 'jumping' phenomenon when loading. Is it possible to fix this somehow?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,我不认为有这样的选择。无论如何,您可以使用初始状态为
visibility:hidden
的容器 div(其中包含所有 dojo 布局元素),并在加载并解析页面后将其可见性更改为“visible”。No, I don't think that there is such an option. Anyway, you could use a container div (with all the dojo layout elements in it) with initial state
visbility:hidden
, and after the page is loaded and parsed change it's visibility to "visible".