Skip to content
This repository has been archived by the owner on Apr 6, 2020. It is now read-only.

Delay asset controller layout until frame is correct and layout is complete #158

Merged
merged 1 commit into from
Mar 1, 2017
Merged

Delay asset controller layout until frame is correct and layout is complete #158

merged 1 commit into from
Mar 1, 2017

Conversation

IanHoar
Copy link
Contributor

@IanHoar IanHoar commented May 16, 2016

When presenting as a .FormSheet on iPad, the frame is not correct until just after viewWillAppear:. Moving the scrollToItem: code to viewDidAppear is too late, and viewWillAppear is too early. Dispatching to the main thread waits one run loop until the frame is update and the layout is complete without being visible to the user.

possible fix for: #157 and #148

…mplete

When presenting as a .FormSheet on iPad, the frame is not correct until just after `viewWillAppear:`. Moving the `scrollToItem:` code to viewDidAppear is too late, and viewWillAppear is too early. Dispatching to the main thread waits one run loop until the frame is update and the layout is complete without being visible to the user.
@justinsinger
Copy link

#168, #150, and #111 are duplicates of this fix, and this actually fixes a number of issues. @questbeat これらのいずれかをマージして問題を解決できるか

(I'm having the same issue mentioned here: #148)

@nek023
Copy link
Owner

nek023 commented Mar 1, 2017

Understood the problem.
Sorry for late reply 🙇

@nek023 nek023 merged commit 93ba9d5 into nek023:master Mar 1, 2017
@justinsinger
Copy link

@questbeat Yay!! Thank you! 😄

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

Successfully merging this pull request may close these issues.

3 participants