PDA

View Full Version : [CLOSED] Panel.setLoading() does nothing when panel is collapsed



mpost
12 Dec 2012, 10:50 AM
Start with:

An Ext.Panel which is a child of a border layout
Set the panel to region: 'south', collapsed: true, and titleCollapse: true
Then call setLoading on the panel. Nothing happens (because Component.setLoading specifically excludes collapsed components).

I would expect that the placeholder for the panel would get a loading mask. Why might I want to do this? Because I've added buttons to the placeholder and want to prevent the user from accessing the panel's functionality. Why not simply disable the buttons? Because the user can still click on the tools as well as on the placeholder itself (which causes the panel to expand due to titleCollapse: true).

evant
12 Dec 2012, 12:24 PM
I think this is a fairly atypical use case. Certainly I could see how you might want to mask the header, but I also think it adds a whole lot of extra complication to masking.

For now, I think these complications outweigh the benefits.

mpost
12 Dec 2012, 12:30 PM
Can you offer a work around for this deficiency in your framework?