PDA

View Full Version : on close window get appended below task bar.



panky_p
28 Jan 2010, 2:02 AM
Hi, when I close the window it closes but it goes belo task bar and desktop scrolls.
It actually happened because of before close i am appending it to container



listeners:

{


'beforeclose' : function(){

var content = Ext.get('rerport-page');

if(content != null)
{
var container = Ext.get('desktop-container');
if(container != null){
container.appendChild(content)
}
}
},
scope:this





}

If I remove the appendChild the next time the window is not opend after closing. And leaving it as it is cause the closed window appended below task bar.
Any help!!