View Full Version : [FIXED][PR3] Modaled floating TabPanel does not unmodal on close

9 Mar 2011, 12:40 PM
I have a TabPanel that is floating, modaled, and closable. This adds a TabPanel that looks pretty similar with Window except I'm not overnesting now.

If you click on the close tool, the TabPanel will hide but the modal div will still display masking everything.

This works as expected if you set closeAction to "hide", modal disappears also. API docs say "close" is the default for closeAction so I set closeAction to "close" and clicked on the close tool and nothing happened. If you remove the closeAction config prop, what I described above happens. Weird.

var tab = new Ext.TabPanel({
title : "Title Here",
height : 400,
width : 400,
floating : true,
modal : true,
closable : true,
// closeAction : "hide", //enable this and works perfectly to the eye
// closeAction : "close", //enable this and nothing works
items : [
{ title : "Tab One", html : "some text" }

9 Mar 2011, 2:07 PM
Another good spot.

ZIndexManager listens for hide of its managed Components and moves the modal mask down to the next visible modal Component in the stack.

But if a Component just unregisters itself (which a dying Component would), I'm not sure what it does.

I'll look into this tomorrow. I'm exhausted now.

Bump this thread so that I get to look at it again! Thanks.

10 Mar 2011, 5:18 AM
Guess I don't have to bump :D

Great job Animal!