Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

height of menu if orientation is changed #57

Closed
simonsiedler opened this issue Apr 10, 2015 · 4 comments
Closed

height of menu if orientation is changed #57

simonsiedler opened this issue Apr 10, 2015 · 4 comments

Comments

@simonsiedler
Copy link

Great work, I really enjoy the menu!
However I have a small problem if the menu is open and the orientation is changed from portrait to landscape. The menu position works fine, but the scrolling of the menu is not enabled if there are a lot of entries. To reproduce this just create a menu with 10 or more entries, so that not all are directly visible in landscape mode.
I tried to change the height of the sidemenu tableview, but couldn't quite get a working soltion since I am pretty new to mobile programming.
Hope someone has a suggestion to solve this problem.
Keep up the good work

@animaonline
Copy link

I'm having the same problem, any updates?

@dexterliu1214
Copy link

at your navigation controller add this to avoid a strange bug
sideMenu?.bouncingEnabled = false
and add this to your view controller

override func viewDidLayoutSubviews() {
  fixSideMenuSize()
  super.viewDidLayoutSubviews()
}

@simonsiedler
Copy link
Author

Thank you very much, that solved the problem!

@djdance
Copy link

djdance commented Jun 13, 2017

also add into func updateFrame()

guard (outterView != nil) else { return } let bgFrame = CGRect( x: 0, y: 0, width: width, height: height ) outterView.frame = bgFrame

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

No branches or pull requests

4 participants