1
votes

I create an object of window, and put tabpanel in this window. but window.close() method does not destroy window. When I click button to open window again it display 2 different tabpanel, one from old window and another from new window and it crash my user interface.

I also called listener "beforeclose" and in this method destroy tabpanel but that doest not work.

What can be done?

2
Can you post your code?kevhender

2 Answers

4
votes

Are you sure that closeAction option is set to destroy?
Of course it is a good idea to show simplified sources, so we can understand where the problem exists.

2
votes

Add closeAction:'destroy' to your window. It should work.