为什么dojo dgrid中的标题不会出现,除非我调整浏览器的大小? [英] Why will the headings in my dojo dgrid not appear unless I resize the browser?

查看:144
本文介绍了为什么dojo dgrid中的标题不会出现,除非我调整浏览器的大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

除了我调整浏览器窗口大小之外,我有一个标题不会出现的文字。一旦我调整浏览器窗口大小,标题就会出现。如何在不调整浏览器大小的情况下显示标题?

I've got a dgrid with headings that will not appear unless I resize the browser window. As soon as I resize the browser window, the headings appear. How can I get the headings to show up without resizing the browser?

我没有正确地调用startup()?有没有一个事件我可以开始使dgrid认为浏览器已经调整大小?

Am I not calling startup() correctly? Is there an event I can fire to make the dgrid think the browser has been resized?

推荐答案

将DijitRegistry添加到网格如下所示:

Put add the DijitRegistry to the grid as shown here:

https:// github.com/SitePen/dgrid/wiki/DijitRegistry

将dijit容器放在内容窗格中(如果需要窗格)并将网格添加为一个容器的孩子容器将调用其子进程调用它们的大小。

Put a dijit Container in your content pane (if the pane is necessary) and add the grid as a child of the container. The container will call startup on its children which resizes them also.

这篇关于为什么dojo dgrid中的标题不会出现,除非我调整浏览器的大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆