pkluz / PKRevealController

PKRevealController is a delightful view controller container for iOS, enabling you to present multiple controllers on top of one another.
Other
3.85k stars 659 forks source link

Fixes container view layout propagation issue #151

Open loicgardiol opened 11 years ago

loicgardiol commented 11 years ago

I was not able to tell in which exact situation this bug appear, but sometimes, the controller's view of the PKRevealControllerContainerView is not resizing correctly. In my case, in appear while using a UISplitViewController (see screenshots).

iPad landscape iPad portrait

It seems that the layoutSubviews of PKRevealControllerContainerView should set the controller's view frame to its own bounds instead of the ones of the view. Doing so solves the issue.