如何告诉触摸将表单放在特定容器中?
当前
<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>
答案 0 :(得分:1)
因为视口将始终呈现给<body>
您需要Ext.Container
renderTo: Ext.get('#formContainer')
。