MFSideMenu icon indicating copy to clipboard operation
MFSideMenu copied to clipboard

Side Menu Height is cut off on iPhone 6

Open cblaze22 opened this issue 9 years ago • 5 comments

For some reason the side menu doesnt expand 100% the heigh on iPhone 6 simulator. Is there something I need to do? The menu is being cut off as it seems like there is a fixed height or something on it. It is also being pushed up on first view as you can see in the status bar.

simulator screen shot nov 6 2015 10 48 02 pm

cblaze22 avatar Nov 07 '15 03:11 cblaze22

I've found a quick solution. This is not good solution but it works.

Inside the function called "setLeftSideMenuFrameToClosedPosition", replace line below

CGRect leftFrame = [self.leftMenuViewController view].frame;

to the code below.

CGRect leftFrame = [self.centerViewController view].frame;

I'm not sure the detail but the rect value of leftMenuViewController detected automatically doesn't work well on devices newer than 5s such iPhone 6, 6 Plus and the other newers. But the rect value of centerViewController detected works well on them.

nobu417 avatar Jan 06 '16 09:01 nobu417

Why would you consider this a bad solution?

cblaze22 avatar Jan 06 '16 15:01 cblaze22

Because basically leftFrame and centerView are not same stuff even the size both calculated are same.

nobu417 avatar Jan 07 '16 14:01 nobu417

That actually works very well, no complaints here. Probably should update the code on here with that and the right menu. My center content is always the size of the screen though.

cblaze22 avatar Jan 10 '16 14:01 cblaze22

I also found that side menu doesnt expand 100% the heigh on iPhone 6 simulator with the issue is the view.size.height less 20 pix

in function "- (void)setCenterViewController:(UIViewController *)centerViewController"

replace : [((UIViewController *)_centerViewController) view].frame = (CGRect){.origin = origin, .size=centerViewController.view.frame.size}; with : [((UIViewController *)_centerViewController) view].frame = self.leftMenuViewController.view.frame;

can solve this!

simulator screen shot 2016 1 28 12 23 01

xxfenxx avatar Jan 28 '16 04:01 xxfenxx