matthewcheok / MCPanelViewController

Drop-in panel control for iOS with blurring background and screen-edge activation gestures.
MIT License
324 stars 25 forks source link

Orientation #7

Closed jcampbell05 closed 8 years ago

jcampbell05 commented 10 years ago

How will I update the width of the side panels upon rotation ? Also is there a way to have them thinner on the iPhone ?

matthewcheok commented 10 years ago

You can set the width using preferredContentSize property. The height is ignored. Unfortunately there’s no way to set widths for different orientations at the moment.

If you’d like to add this, you can try adjusting the internal maxWidth property inside the UIViewController rotation methods and then call - (void)layoutSubviewsToWidth:(CGFloat)width inside an animation block to update the UI.