AppInspector icon indicating copy to clipboard operation
AppInspector copied to clipboard

"SenchaComponent" tab not finding the Viewport

Open arthurakay opened this issue 10 years ago • 2 comments

http://www.sencha.com/forum/showthread.php?281974-App-Inspector-for-Sencha-v2.0&p=1064100&viewfull=1#post1064100

arthurakay avatar Sep 04 '14 17:09 arthurakay

Looks like it's an Ext JS 5 bug, see http://www.sencha.com/forum/showthread.php?291317-Ext.getCmp-not-finding-viewport&p=1064131#post1064131

SebTardif avatar Sep 04 '14 18:09 SebTardif

Though the element and its owner component frequently share the same id (which in turn allows for #getCmp lookups in the ComponentManager's cache), this is not a guarantee. It will almost always be the case when the component renders its elements internally, but it will not necessarily be the case when the component is given a configured element as its top-level "el". This is indeed the case with viewports.

Since this is not really a bug, we have instead added a public static method on Component: Ext.Component.fromElement. This will do the necessary work to trace an element to its owner component.

btoll avatar Jan 13 '15 01:01 btoll