PDA

View Full Version : Maximize Window Causes Restore Failure



orhant
18 May 2011, 2:08 PM
Hello

When I Restored a maximized window, its original position changes prior to being maximized.

Is it a bug?


var win2 = Ext.create('widget.window', {
height: 200,
width: 400,
x: 450,
y: 450,
maximizable:true,
title: 'Constraining Window, plain: true',
closable: false,
plain: true,
layout: 'fit',
items: [floater = Ext.create('Ext.Component', {
xtype: 'component',
floating: {
shadow: false
},
height: 50,
width: 50,
x: 175,
y: 75
}), constrainedWin = Ext.create('Ext.Window', {
title: 'Constrained Window',
width: 100,
height: 100,
x: 20,
y: 20,
constrain: true,
layout: 'fit',
items: {
border: false
}
}), constrainedWin2 = Ext.create('Ext.Window', {
title: 'Header-Constrained Win',
width: 100,

height: 100,
x: 120,
y: 120,
constrainHeader: true,
maximizable:true,
layout: 'fit',
items: {
border: false
}
}),{
border: false
}]
});
win2.show();
floater.show();
constrainedWin.show();
constrainedWin2.show();