Rendering ExtJS 4+ MVC application in a html div - how-to?

后端 未结 4 1491
时光取名叫无心
时光取名叫无心 2021-02-04 18:03

All examples that I have found so far explain how to render ExtJS (4.2) MVC application within the \"viewport\", which in other words means full browser screen, and occupying wh

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-04 18:52

    In some of these answers, some suggest using an Ext.Panel with a renderTo. You shouldn't be using an Ext.Panel if you're not going to be utilizing it for anything other than a container if you're going to go this route. You should be using Ext.container.Container instead.

    By using Ext.Panel you are adding a bunch of unnecessary things like the title bar and such to your component. Each one of these puts extra place holders there even if you aren't using them.

提交回复
热议问题