使用Sencha Touch 2 FormPanel定位容器

时间:2014-04-08 17:48:20

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

如何告诉触摸将表单放在特定容器中?

当前

<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>

1 个答案:

答案 0 :(得分:1)

因为视口将始终呈现给<body> 您需要Ext.Container renderTo: Ext.get('#formContainer')