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

TIMOB-13104-override onLayout on the native control #4171

Merged
merged 2 commits into from May 15, 2013

Conversation

salachi
Copy link
Contributor

@salachi salachi commented Apr 16, 2013

Override onLayout of the native control to fire the event.

https://jira.appcelerator.org/browse/TIMOB-13104

@ayeung
Copy link
Contributor

ayeung commented Apr 19, 2013

This should be done inside TiImageView, not TiUIImageView. We already overwrite onlayout() in TiImageView, so you just need to call postlayout there.

@salachi
Copy link
Contributor Author

salachi commented May 2, 2013

I added this in TiUIImageView because the proxy was not available in the TiImageView. We could change the constructor to pass the proxy in to TiImageView. Let me know if that is ok.

@ayeung
Copy link
Contributor

ayeung commented May 3, 2013

Let's move it into TiImageView. Make sure you create a new constructor for it. Also when you add it to TiImageView, use a weak reference for the proxy. Look at how we do this in TiCompositeLayout as an example.

@ayeung
Copy link
Contributor

ayeung commented May 15, 2013

Code reviewed and functionally tested. Request Accepted.

ayeung pushed a commit that referenced this pull request May 15, 2013
TIMOB-13104-override onLayout on the native control
@ayeung ayeung merged commit 96bdfdd into tidev:master May 15, 2013
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

Successfully merging this pull request may close these issues.

None yet

2 participants