PDA

View Full Version : Window inside viewport and tabpanel



netsystemsrl
30 Jul 2014, 6:05 AM
Ext.namespace('Custom');

Custom.FormWindow = new Ext.Window(
id:'CurrentFormPanel',
layout:'form',
....
);

Ext.onReady(function().
....
var viewport = new Ext.Viewport
layout:'border',
items:[
....
xtype:'tabpanel',
region:'center',
items:[
contentEl:'divcenter',
id:'FormEditor'
items: Custom.FormWindow

no error is returned by browser but FormView is not dockable inside tabpanel is floating....
do y now some solution ?

israelroldan
1 Aug 2014, 3:58 AM
If you don't want CurrentFormPanel to be floatable, then it is easier to create a panel.

Also, you're using Ext JS 3.x syntax. While not bad, you should give Ext JS 4.x's MVC structure a try. ;)