creativetimofficial / ct-vue-paper-dashboard-pro

Vue Paper Dashboard PRO - made by Creative Tim
https://www.creative-tim.com/product/vue-paper-dashboard-pro
41 stars 13 forks source link

Page not scrolling to top #77

Closed Fusseldieb closed 5 years ago

Fusseldieb commented 5 years ago

So, I've purchased (material) dashboard pro, but when I scroll to the bottom of a long page and then try to go to a rather short page, it doesn't scroll back to the top, but instead leaves me with a blank page for me to scroll up.

Is there any solution to scroll always to the top on a new route? Would be great.

Thank you.

Fusseldieb commented 5 years ago

Solved it apparently. Disabling/Commenting "perfect-scrollbar" entirely (the initialization commands) solved that issue, now it goes to the top whenever a new route loads, but also now the default scrollbar is back, but that's fine for me, since I wanted that in the first place.

That custom scrollbar was giving me headaches.

Note that the sidebar also gets a unecessary horizontal scrollback at the bottom when it collapses. Removed that by setting the wrapper to overflow: hidden

cristijora commented 5 years ago

Hey @Fusseldieb glad it was resolved for your and we did some minor updates on this template. I will close the issue.

PS: Do you have material dashboard or paper dashboard ? This repo is for Paper Dashboard issues.

Fusseldieb commented 5 years ago

PS: Do you have material dashboard or paper dashboard ? This repo is for Paper Dashboard issues.

Material Dashboard, sorry about the confusion.