From a2ada5ec910b1b0a2a28646df1f32bf97613aa7e Mon Sep 17 00:00:00 2001 From: longyunrui <1239305697@qq.com> Date: Mon, 9 Sep 2019 17:27:52 +0800 Subject: [PATCH] =?UTF-8?q?iPad=20Pro=20=E4=B8=AD=E6=89=93=E5=BC=80?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=9C=80=E5=B0=8F=E5=AE=BD=E5=BA=A6=E5=A4=A7?= =?UTF-8?q?=E4=BA=8E=201024px=20=E7=9A=84=E9=A1=B5=E9=9D=A2=E6=97=B6?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=E4=BD=8D=E7=BD=AE=E4=BB=BB=E7=84=B6=E7=9B=B8?= =?UTF-8?q?=E5=AF=B9=20=E4=BA=8E=201024px=20=E5=AE=9A=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layer.js b/src/layer.js index e906069..c61632b 100644 --- a/src/layer.js +++ b/src/layer.js @@ -409,7 +409,7 @@ Class.pt.offset = function(){ var area = [layero.outerWidth(), layero.outerHeight()]; var type = typeof config.offset === 'object'; that.offsetTop = (win.height() - area[1])/2; - that.offsetLeft = (win.width() - area[0])/2; + that.offsetLeft = ((window.innerWidth) - area[0])/2; if(type){ that.offsetTop = config.offset[0];