Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"SenchaComponent" tab not finding the Viewport #126

Open
arthurakay opened this issue Sep 4, 2014 · 2 comments
Open

"SenchaComponent" tab not finding the Viewport #126

arthurakay opened this issue Sep 4, 2014 · 2 comments

Comments

@arthurakay
Copy link
Contributor

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

@SebTardif
Copy link

@btoll
Copy link

btoll commented Jan 13, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants