View Full Version : Knowing a Panel is floated-expanded instead of expanded

20 Sep 2013, 5:04 AM
I'm using a (Tree)panel as the 'west' item of a viewport with a border layout.
The panel is collapsible and stateful.

The very first time the panel is expanded clicking on the title bar to make it floating, getState() is called (even if I'm just listening to 'expand' end 'collapse' events), getCollapsed() tells me it is expanded but I have no way to know it is a floating expansion (and I don't want to save this kind of expansion in the state).

I had to read the internal, undocumented, property floated to save the proper state.

It would be appropriate if there was a documented, reliable, accessor to read such property.

Gary Schlosberg
20 Sep 2013, 10:29 AM
I'm probably missing something, but how about isFloating (http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.tree.Panel-method-isFloating)?

20 Sep 2013, 1:03 PM
Negative, isFloating() always returns false

21 Sep 2013, 4:00 AM
I believe it is not floating, but it is animating.