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

Sidebar width not same on mac and windows #12

Closed
unoiatech opened this issue Mar 27, 2019 · 5 comments
Closed

Sidebar width not same on mac and windows #12

unoiatech opened this issue Mar 27, 2019 · 5 comments
Labels
help wanted Extra attention is needed

Comments

@unoiatech
Copy link

Hi,
we are facing sidebar appearance issue on our website.it take different width on mac and on windows.On window system table data scrolling issue also appear when refresh page then scroll from bottom to up .
Please find below screenshot :
1.Window Issue : https://prnt.sc/n3i3ne
2.Mac Issue :https://prnt.sc/n3hv10

Thanks

@dragosct
Copy link
Member

Hi, @unoiatech! Thank you for using our products. Please, give us your link to the project to see what is happening there because we can't reproduce the issue.

Regards,
Dragos

@dragosct dragosct added the help wanted Extra attention is needed label Mar 27, 2019
@unoiatech
Copy link
Author

Hi,

link to our project : http://vuedashboard.surge.sh/#/dashboard

there is also issue with scrolling.when we scroll to the bottom of a page and open another page the page loads from the bottom not from the top.the page opens from the last scrolled position.please check.

Thanks

@dragosct
Copy link
Member

Hi! To fix the problem with the scroll on top please go in src/main.js and put this:

// configure router
const router = new VueRouter({
  routes, // short for routes: routes
  scrollBehavior: to => {
    if (to.hash) {
      return { selector: to.hash };
    } else {
      return { x: 0, y: 0 };
    }
  },
  linkExactActiveClass: "nav-item active"
});

Regard to the problem with the sidebar I can't realise where it's problem, everything looks good on your website.

Regards,
Dragos

@unoiatech
Copy link
Author

Hi Dragos,

the solution you provided for scrolling does not work.The page start from last scrolled position when we go to new page.
Please look into the sidebar issue also.I am also attaching the screenshot how the sidebar opens on mac.
The sidebar take different widths on windows and mac.The sidebar width is fixed on windows but not on mac.

screenshot: https://prnt.sc/n4kax4

Thanks

@dragosct
Copy link
Member

dragosct commented Apr 1, 2019

Hi! The solution that I gave it to you it's an official one from the vuejs: https://router.vuejs.org/guide/advanced/scroll-behavior.html and in our side, this works. I will attach you a video to show you that on our MacBooks there are no different widths and we can't reproduce the issue to tell you how to fix it. The video was made on Chrome, but it also works in Safari.

sidebar-vue-md-pro.mov.zip

Regards,
Dragos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants