Dijit.Dialog 1.4,无论我设置什么尺寸,设置尺寸都限制为600x400
我正在尝试设置 dijit.Dialog 的大小,但无论我设置它的大小,它似乎仅限于 600x400。我已经从 dojocampus 复制了代码,并且出现了对话框,但是当我将尺寸设置得更大时,它只显示 600x400。使用 firebug 并选择对话框内的项目,我发现它们比对话框大,但显示不正确。我将其设置为滚动,但滚动条的底部看不到。在 firebug 中,我检查了 _Widget 的 maxSize 并将其设置为无穷大。这是我设置对话框的代码。
<div id="sized" dojoType="dijit.Dialog" title="My scrolling dialog">
<div style="width: 580px; height: 600px; overflow: scroll;">
对于增大对话框大小有什么建议吗?
I'm trying to set the size of a dijit.Dialog, but it seems limited to 600x400, no matter what size I set it. I've copied the code from dojocampus and the dialog appear, but when i set the size larger, it only shows 600x400. Using firebug and selecting items inside the dialog, I see that they are larger than the dialog, but don't show correctly. I set it up to scroll, but the bottom of the scrollbar is out of view. In firebug, I've check the maxSize from _Widget and it is set to infinity. Here is my code to set the dialog.
<div id="sized" dojoType="dijit.Dialog" title="My scrolling dialog">
<div style="width: 580px; height: 600px; overflow: scroll;">
Any suggestions for sizing the dialog box larger?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我刚刚使用 dojo 1.4 从头开始编写了一个快速示例,并且能够毫无问题地设置任意大的 DBX 大小。
如果不查看代码,可能很难找到问题的根源,但这似乎并不是 dojo 工具包的固有限制。也许您有一些 CSS 规则以您没有预料到的方式继承?
也许您可以使用我下面的示例与您的用例进行比较,并找出您的实现有何不同。
I just coded up a quick sample from scratch using dojo 1.4 and was able to set an arbitrarily large DBX size with no problems.
Without seeing your code it might be hard to find where your issue is stemming from but it does not seem to be an inherent limitation of the dojo toolkit. Perhaps you have some CSS rules that are inherited in a way you did not anticipate?
Perhaps you can use my sample below to compare with your use case and figure out what is different about your implementation.