Vue-js-modal: Horizontal alignment doesn't exclude window scroll bar width

Created on 6 Aug 2017  路  3Comments  路  Source: euvl/vue-js-modal

This is a great component, but there is a slight issue with horizontal alignment.

Web page content is usually aligned with scroll bar taken into account (document.body.clientWidth). However, this modal includes scroll bar width (window.innerWidth), which makes it aligned a bit too much on the right. Depending on the content behind, it looks more or less like a layout bug.

screen shot 2017-08-06 at 23 09 00

I think there should be at least a prop to choose whether to exclude scroll bar width.

bug looks good to me

All 3 comments

Hey @ptilli,

Thanks for spotting it, ill change it to document.body.clientWidth.

Hey @ptilli, should be fixed in latest version 馃憤

Thanks for the quick fix @euvl! Tested and it works.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bicstone picture bicstone  路  4Comments

MacgyverMartins picture MacgyverMartins  路  4Comments

Max64 picture Max64  路  4Comments

outOFFspace picture outOFFspace  路  4Comments

dland512 picture dland512  路  4Comments