From 9f814fb8423bb007c37e38f49dd47b3b745af873 Mon Sep 17 00:00:00 2001 From: arve0 Date: Wed, 13 Sep 2017 19:25:21 +0200 Subject: [PATCH] Use window.innerWidth instead of body.clientWidth Fixes pivot-x for cases where you have body smaller than document, for example: ```html ``` Fixes issue #84 --- src/Modal.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Modal.vue b/src/Modal.vue index 6ae2a89..f0e34c7 100644 --- a/src/Modal.vue +++ b/src/Modal.vue @@ -332,7 +332,7 @@ }, onWindowResize () { - this.window.width = document.body.clientWidth + this.window.width = window.innerWidth this.window.height = window.innerHeight },