mirror of https://github.com/layui/layer
Merge 4dfc307de0
into 0018e1a54f
commit
456ac338ec
File diff suppressed because one or more lines are too long
10
package.json
10
package.json
|
@ -16,12 +16,12 @@
|
||||||
"author": "贤心",
|
"author": "贤心",
|
||||||
"homepage": "http://layer.layui.com/",
|
"homepage": "http://layer.layui.com/",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"gulp": "^3.9.0",
|
"del": "^2.2.2",
|
||||||
"gulp-minify-css": "^1.2.4",
|
"gulp": "^3.9.1",
|
||||||
"gulp-uglify": "^1.5.4",
|
|
||||||
"gulp-rename": "^1.2.2",
|
|
||||||
"gulp-header": "^1.8.8",
|
"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": {
|
"bugs": {
|
||||||
"url": "https://github.com/sentsin/layer/issues"
|
"url": "https://github.com/sentsin/layer/issues"
|
||||||
|
|
|
@ -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