RESideMenu icon indicating copy to clipboard operation
RESideMenu copied to clipboard

Fitting within the Menu Bounds

Open mbalex99 opened this issue 9 years ago • 5 comments

I'm totally stuck but how do I fit something within the menu bounds?

I'd like to stick a UITableView here perfectly from end to end. I'm down with autolayout or even setting the frame but I think I'm totally confused about how to calculate this length.

reside_menu_question

mbalex99 avatar Jan 20 '16 09:01 mbalex99

Did you ever find a solution to this? I'm looking to center a view within the menu view controller, but can't seem to find a way to calculate that width you mention.

Gman9855 avatar Jun 05 '16 18:06 Gman9855

I ended up not using this project :-\

On Sun, Jun 5, 2016 at 11:20 AM Gman9855 [email protected] wrote:

Did you ever find a solution to this? I'm looking to center a view within the menu view controller, but can't seem to find a way to calculate that width you mention.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/romaonthego/RESideMenu/issues/274#issuecomment-223828447, or mute the thread https://github.com/notifications/unsubscribe/ACFSMbTDNYk0Y_hoZiIu7CL7Sy-HlHjqks5qIxOLgaJpZM4HId44 .

Maximilian Alexander [email protected] http://blog.edenmsg.com

mbalex99 avatar Jun 05 '16 18:06 mbalex99

What did you use instead?

Gman9855 avatar Jun 05 '16 18:06 Gman9855

I ended up writing my own implementation of a sliding menu.

On Sun, Jun 5, 2016 at 11:23 AM Gman9855 [email protected] wrote:

What did you use instead?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/romaonthego/RESideMenu/issues/274#issuecomment-223828596, or mute the thread https://github.com/notifications/unsubscribe/ACFSMZmGvszp7gNX_BV0F5wmPL0sOu7Sks5qIxQegaJpZM4HId44 .

Maximilian Alexander [email protected] http://blog.edenmsg.com

mbalex99 avatar Jun 05 '16 18:06 mbalex99

I also stumbled upon this problem.

The sourcecode says:

self.contentViewContainer.center = CGPointMake((UIInterfaceOrientationIsLandscape([[UIApplication sharedApplication] statusBarOrientation]) ? -self.contentViewInLandscapeOffsetCenterX : -self.contentViewInPortraitOffsetCenterX), self.contentViewContainer.center.y);

So your X-point should be (self.view.frame.size.width/2)-30 and your width should be self.view.frame.size.width-((self.view.frame.size.width/2)-30)

ThoastProductions avatar Jan 19 '17 07:01 ThoastProductions