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

[Bug Report] Navigation Drawer right-watch always resets application padding #2679

Closed
sjoris opened this issue Nov 30, 2017 · 2 comments
Closed
Labels
T: bug Functionality that does not work as intended/expected

Comments

@sjoris
Copy link

sjoris commented Nov 30, 2017

Versions and Environment

Vuetify: 0.17.3
Vue: 2.5.9
Browsers: Firefox 57.0
OS: Windows 10

Steps to reproduce

I installed the webpack-advanced template with vue-cli and had problems with the right temporary Navigation Drawer.

  • Click on the top-right button to open the temporary drawer
  • Now use the 'Switch drawer' button

Expected Behavior

Because the right Navigation drawer is temporary, you would expect it to switch from right to left and back, without changing the application paddings, because it is temporary.

Actual Behavior

You'll see that the toolbar, content and footer lose their left padding. Now the toolbar is behind the left Navigation drawer and it will not come back.

Reproduction Link

https://codepen.io/anon/pen/EbOeVq

Other comments

The problem is not only in the webpack-advanced template, I think it is also a small mistake in the source of the Navigation Drawer.

To match the webpack-advanced template with the webpack and webpack-ssr templates, the app property of the right Navigation Drawer should probably be changed to fixed.

To fix the Navigation Drawer:
File: vuetify/src/components/VNavigationDrawer/VNavigationDrawer.js
In the watch of property right on line 192
Original: if (prev != null)
I think it should be: if (prev != null && this.app)

After these changes all works well and as expected.

sjoris pushed a commit to sjoris/vuetify that referenced this issue Nov 30, 2017
…, when the Navigation drawer is part of the application layout (vuetifyjs#2679)
@nekosaur nekosaur added the T: bug Functionality that does not work as intended/expected label Nov 30, 2017
@jacekkarczmarczyk
Copy link
Member

fixed with #2703

@lock
Copy link

lock bot commented Apr 15, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please direct any non-bug questions to our Discord

@lock lock bot locked as resolved and limited conversation to collaborators Apr 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T: bug Functionality that does not work as intended/expected
Projects
None yet
Development

No branches or pull requests

3 participants