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

Rebuild subviewsInLayoutOrder based on subviews layout order. #362

Merged
merged 4 commits into from
Nov 16, 2016

Conversation

zenangst
Copy link
Owner

@zenangst zenangst commented Nov 16, 2016

I found an issue where subviewsInLayoutOrder can be out of sync with the actual layout order in the contentView. To fix this issue, the layout order is rebuilt based on the contentView order when you add new views.

This also moves observers into its own collection so that you cannot add or remove observers twice.

@mention-bot
Copy link

@zenangst, thanks for your PR! By analyzing the history of the files in this pull request, we identified @vadymmarkov and @onmyway133 to be potential reviewers.

@zenangst zenangst changed the title Rebuild subviewsInLayoutOrder based on subviews layout order. [WIP] Rebuild subviewsInLayoutOrder based on subviews layout order. Nov 16, 2016
@codecov-io
Copy link

Current coverage is 58.44% (diff: 100%)

Merging #362 into master will increase coverage by 0.04%

@@             master       #362   diff @@
==========================================
  Files            47         47          
  Lines          2555       2558     +3   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits           1492       1495     +3   
  Misses         1063       1063          
  Partials          0          0          

Powered by Codecov. Last update 1dbc4dc...428ff52

@zenangst zenangst changed the title [WIP] Rebuild subviewsInLayoutOrder based on subviews layout order. Rebuild subviewsInLayoutOrder based on subviews layout order. Nov 16, 2016
@zenangst
Copy link
Owner Author

@hyperoslo/ios this should be good now 😁

@vadymmarkov vadymmarkov merged commit 2bb4f44 into master Nov 16, 2016
@vadymmarkov vadymmarkov deleted the fix/invalid-layout branch November 16, 2016 11:27
@vadymmarkov
Copy link
Collaborator

@zenangst Looks good!

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

4 participants