I need to put a window control inside a panel control and constrain the window inside this panel.
this is my code resumed:
Ext.define('App.view.MainWindow', {
extend: 'Ext.container.Viewport',
alias: 'widget.mainwindow',
layout: 'vbox',
items: [
{
xtype: 'panel',
height: 50,
width: '100%',
layout: 'hbox'
},
{
xtype: 'panel',
height: 400,
width: '100%',
layout: 'hbox',
items:[
window1 = Ext.create('Ext.window.Window', {autoShow:true, width:90}),
window2 = Ext.create('Ext.window.Window', {autoShow:true, width:400})
]
}
],
With this code, the both windows appears on top of each other.
Thanks.