mutualmobile / MMDrawerController

A lightweight, easy to use, Side Drawer Navigation Controller
MIT License
6.76k stars 1.38k forks source link

Suggestion: Resizing the centerContent frame on iPad instead of offsetting #293

Open GresiRoost opened 10 years ago

GresiRoost commented 10 years ago

With the new possibility to interact with the center view while the drawer is open and it can be open indefinitely without closing it would make perfect sense to allow the center view to be resized instead of being pushed to the side. On iPhone it doesn't make much sense because of the limited space available but on iPad it would perfect.

sanketfirodiya commented 9 years ago

@GresiRoost I am trying to figure out how to interact with the center view while drawer is open. Could you guide me please? Do you manually intercept touch events or is this available on MMDrawerController itself?

kenthinson commented 9 years ago

Plus one form me I would love to have this as an option for the iPad/6 Plus.

Eke commented 9 years ago

interested in this too. any ideas?

anguskwan commented 9 years ago

+1. resizing wanted! :p

drmarkpowell commented 9 years ago

I forked the repo and implemented a center view resize when the left drawer (only) is configured. You can see it working in my production (free) app here: https://itunes.apple.com/us/app/mars-images/id492852224?mt=8

Is this something you would like to bring in as a feature? If so, I would be willing to finish it out for the general case and submit it as a PR.

I'm also interested in adding animation to the resizing so that it doesn't have to look so jarring when the center view suddenly resizes when you close/open the drawer.