mirror of https://github.com/layui/layer
iPad Pro 中打开页面最小宽度大于 1024px 的页面时弹窗位置任然相对 于 1024px 定位
parent
0018e1a54f
commit
a2ada5ec91
|
@ -409,7 +409,7 @@ Class.pt.offset = function(){
|
||||||
var area = [layero.outerWidth(), layero.outerHeight()];
|
var area = [layero.outerWidth(), layero.outerHeight()];
|
||||||
var type = typeof config.offset === 'object';
|
var type = typeof config.offset === 'object';
|
||||||
that.offsetTop = (win.height() - area[1])/2;
|
that.offsetTop = (win.height() - area[1])/2;
|
||||||
that.offsetLeft = (win.width() - area[0])/2;
|
that.offsetLeft = ((window.innerWidth) - area[0])/2;
|
||||||
|
|
||||||
if(type){
|
if(type){
|
||||||
that.offsetTop = config.offset[0];
|
that.offsetTop = config.offset[0];
|
||||||
|
|
Loading…
Reference in New Issue