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-23934] iOS: Fix first-child from not receiving click events of it's parent #8432

Merged
merged 1 commit into from
Sep 27, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 6 additions & 3 deletions iphone/Classes/TiViewProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -221,16 +221,19 @@ -(void)add:(id)arg
#else
[self rememberProxy:childView];
#endif
// Lock the assignment of the position to prevent race-conditions
pthread_rwlock_wrlock(&childrenLock);
if(position < 0 || position > [children count]) {
position = (int)[children count];
}
[children insertObject:childView atIndex:position];
//Turn on clipping because I have children
[[self view] updateClipping];

pthread_rwlock_unlock(&childrenLock);

[childView setParent:self];

// Turn on clipping because I have children
[[self view] updateClipping];

[self contentsWillChange];
if(parentVisible && !hidden)
{
Expand Down