【问题标题】:Target a Container with Sencha Touch 2 FormPanel使用 Sencha Touch 2 FormPanel 定位容器
【发布时间】:2014-04-08 17:48:19
【问题描述】:

如何告诉 touch 将表单放置在特定容器中?

当前:

<body>
    <div>hey there</div>
    <div id="formContainer"></div>
    <div>the end</div>
    **TOUCH ALWAYS APPENDS EXT-VIEWPORT TO THE END OF THE BODY**
</body>

期望:

<body>
    <div>hey there</div>
    <div id="formContainer">**APPEND HERE INSTEAD**</div>
    <div>the end</div>
</body>

【问题讨论】:

    标签: extjs sencha-touch sencha-touch-2


    【解决方案1】:

    因为视口将始终呈现到&lt;body&gt;
    你需要一个Ext.ContainerrenderTo: Ext.get('#formContainer')

    【讨论】:

    • 你能指出我可以看到这个的代码示例吗?我是煎茶n00b。
    • 请先发布您目前拥有的内容。那我可以帮你。
    猜你喜欢
    • 2011-11-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-08-21
    相关资源
    最近更新 更多