PDA

View Full Version : Window maximized problem



ser
30 Dec 2010, 8:26 AM
try, please this example.

Ext.onReady(function(){
var wnd = new Ext.Window({
maximized: true,
maximizable: true,
width: 300,
height: 200
});
wnd.show();
})

Window is shown in maximized mode. But if click maximized button, the window disappears. Why?

ExtJS 3.2.1

Condor
30 Dec 2010, 8:47 AM
Looks a bit like a bug. If you create a window maximized, the x and y are never calculated correctly.

ser
30 Dec 2010, 9:40 AM
This can be fixed a once fast? Or it will take some time and is no longer relevant for this version?

skirtle
30 Dec 2010, 11:32 AM
Simple workaround, works fine so long as you don't want to animate the show():


var wnd = new Ext.Window({
maximizable: true,
width: 300,
height: 200
});

wnd.show();
wnd.maximize();

This is a known bug: http://www.sencha.com/forum/showthread.php?112542.

ser
30 Dec 2010, 11:48 AM
ok, thanks, it's work.