, Liferay div, Sencha, , . , Sencha, .
Sencha, , , Ext.Viewport:
view.jsp() :
Sencha Viewport:
this._viewport = new Ext.Viewport({
layout : 'border',
margins : '0 0 0 0',
renderTo:Ext.get(Repository.Config.GUI_PARENT),
defaults : {
renderTo:Ext.get(Repository.Config.GUI_PARENT)
},
items : [
new Ext.Panel({
region : 'north',
height : 60,
margins : '0 0 0 0',
border : true,
items :[
{
region: 'north',
html: Repository.Templates.login.apply({
currentUser : this._currentUser,
isPublicUser : this._currentUser=='public'
}),
height: 30,
renderTo:Ext.get(Repository.Config.GUI_PARENT)
},
this._controls.toolbar
]
}),
this._controls.centerPanel,
this._controls.leftPanel,
this._controls.rightPanel
]
});
, renderTo: Ext.get(Repository.Config.GUI_PARENT), , , !
ext-all.js
Ext.Viewport = Ext.extend(Ext.Container, {
this.el = Ext.getBody()
Ext.Viewport = Ext.extend(Ext.Container, {
this.el = Ext.get(Repository.Config.GUI_PARENT);
Repository.Config.GUI_PARENT - : "root"
, - , , .