hi,
for a window i have hided maximizing tool by giving
Maximizable : false

later i want to maximize the window on click of an icon on the header. code is somewhat like below

win=desktop.createwindow(
{
maximizable : false,
minimizable : false,
Tools:[{
id:'winsizeminimize',
qtip: 'Minimize',
handler: function(){win.minimize();}},//it works
{
id:'winsizelarge',
qtip: 'Maximize',
//hidden:true,
handler: function(){win.maximize();}}]//its not working
});

I have given both minimizable and maximizable= false initialy then i tried to minimize and maximize the window later. window gets minimize but it not maximizing


Can you tell me why it happens and how can i maximize the window.