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

Weird left view behavior on NavigationDrawerController #553

Closed
duyduong opened this issue Oct 14, 2016 · 9 comments
Closed

Weird left view behavior on NavigationDrawerController #553

duyduong opened this issue Oct 14, 2016 · 9 comments
Assignees

Comments

@duyduong
Copy link

Hi,

I would like to report a bug. It is seemed that the side view on NavigationDrawerController is taking the full width of the device. Please see details below:

image
In this image, View should be your leftView and it got correct frame size (320x1024)

image
In this image, UIView should be the view from my menu view controller. It got correct frame size (320x104). But the width constraint is wrong (self.width = 768 @ 1000). I think this is because of the auto translate resizing mask into constraints

image
Then it made my table view inside my menu view controller completely full width of the device

My testing device is iPad Air 2, iOS 9.3.5

Thanks

@daniel-jonathan
Copy link
Member

Excellent, thank you. I will investigate this today.

@daniel-jonathan daniel-jonathan self-assigned this Oct 14, 2016
@daniel-jonathan
Copy link
Member

I looked into this. I am not able to reproduce the issue. What version of Material are you using? Can you send me your project or a sample so I can investigate further? Thank you!

@daniel-jonathan
Copy link
Member

Hey! I cannot reproduce this issue and I haven't heard back from you. Please reopen or create a new issue if this persists, thank you :)

@lutzj82
Copy link

lutzj82 commented Nov 3, 2016

I too am getting this. I have a tableview inside the view that represents the Left view. I am using autolayout and if i set the width constraint of the tableview equal to the width of the parent view it takes up the entire width of the screen. I am using 2.2.5 of Material

@daniel-jonathan
Copy link
Member

@lutzj82 Can you send a sample project to [email protected]?

@lutzj82
Copy link

lutzj82 commented Nov 9, 2016

I've got a sample project up now where I can't duplicate it :(
I'm trying to go over the differences between the two projects to see why I'm getting an actual width that is greater than the left view width.

@lutzj82
Copy link

lutzj82 commented Nov 9, 2016

Ok, I think I've identified the problem.
If the view controller is hosted using storyboards and not programmatically, I am getting the issue in regards to height and width. The view frame is being resized when it is done using storyboards where it is not happening when loading programmatically. @DanielDahan, I've sent you the sample project.

@daniel-jonathan
Copy link
Member

Yes, this makes sense. I will look this over and make an update :)

@daniel-jonathan
Copy link
Member

Hey, please give Material 2.3.19 a try. I believe it may fix this issue. Thank you :)

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

No branches or pull requests

3 participants