iPad Pro 中打开页面最小宽度大于 1024px 的页面时弹窗位置任然相对 于 1024px 定位

pull/68/head
longyunrui 2019-09-09 17:27:52 +08:00
parent 0018e1a54f
commit a2ada5ec91
1 changed files with 1 additions and 1 deletions

View File

@ -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];