如何将 TouchGridPanel 添加到 Sencha 2 的面板中?
我目前正在使用 Sencha Ext.ux.TouchGridPanel,我需要知道如何将其动态添加到面板中。目前,我建立了一个商店,然后使用一个函数来生成面板。然后,我使用
myPanel.add(myTouchGridPanel);
“这”显示面板的工具栏和标题,但不显示其中的任何信息。使 TouchGridPanel 全屏工作正常,但动画很马虎。
I'm currently using the Sencha Ext.ux.TouchGridPanel, and I need to know how to add it to a Panel dynamically. Currently, I set up a store, then use a function to generate the Panel. I then use
myPanel.add(myTouchGridPanel);
This displays the toolbar and headings of the Panel, but not any of the information within it. Making the TouchGridPanel fullscreen works, but then the animations are sloppy.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果该组件工作正常,也许您将其插入的面板不是您期望的尺寸?
或者 GridPanel 可能没有拉伸到面板的大小,在这种情况下,您应该向面板添加
fit
或card
布局,以便它适合面板的大小该面板的。如果这两件事都不起作用,我建议您打开 Web 检查器并查看面板的 dom - 看看它的大小是多少,以及网格是否实际上已添加到其中。
If the component is working correctly, perhaps the panel you are inserting it into is not the size you expect it to be?
Or maybe the GridPanel is not stretching to the size of the panel, in which case, you should add a
fit
orcard
layout to the panel, so it fits to the size of that panel.If neither of these two things work, I suggest you open up web inspector and look at the dom of your panel - and see what the size of it is, and if the grid is actually being added to it or not.