PDA

View Full Version : Floating panel visibility issue



hpet
10 Mar 2011, 3:47 AM
I know, it has been said alot about it, but something still troubles me.

Goal:
Tab panel with west / center region.
On top of both regions (but still within tab panel container) panel where user must select something.
Once selected, panel hides, and region data is loaded, or whatever.

So far solution:
Tab panel with west / center region.
Because I would like "floating" panel to be part of the tab panel, I simply added it to the tab panel's border layout item collection. It doesn't participate in the layout (no region set), but it is there, I can move it around, hide, show.

Problem:
If panel is initialized with floating: true (I like the shadow), then show() method shows only the shadow.

Inspecting CSS reveals visibility is always hidden.

Conclusion:
If panel is rendered floating, visibility style never gets set properly, remains hidden.
If panel is rendered without floating, everything works nicely.

This happenes only if panel is initialy hidden (hidden: true).

Is this a bug or am I missing something?

With debugging I ended in "getVisMode" method, which return 2 (display). I would expect it to return visibility code.

This happenes regardless what the hideMode setting is.

walldorff
11 Mar 2011, 4:58 PM
What do you have so far (in code)?

hpet
14 Mar 2011, 12:22 AM
I redesigned it a bit so I don't need floating panel anymore.

I have a bit too complex conf to paste, and didn't bother with a simpler example.
Maybe something in my conf messed it up.

Will check it someday in a near future with a simple example and will post back.

THanks anyway!