pull/68/merge
longyunrui 2019-09-09 09:46:50 +00:00 committed by GitHub
commit 456ac338ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

2
dist/layer.js vendored

File diff suppressed because one or more lines are too long

View File

@ -16,12 +16,12 @@
"author": "贤心",
"homepage": "http://layer.layui.com/",
"devDependencies": {
"gulp": "^3.9.0",
"gulp-minify-css": "^1.2.4",
"gulp-uglify": "^1.5.4",
"gulp-rename": "^1.2.2",
"del": "^2.2.2",
"gulp": "^3.9.1",
"gulp-header": "^1.8.8",
"del": "^2.2.2"
"gulp-minify-css": "^1.2.4",
"gulp-rename": "^1.2.2",
"gulp-uglify": "^1.5.4"
},
"bugs": {
"url": "https://github.com/sentsin/layer/issues"

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