dom-align-lowie8
Advanced tools
Comparing version 1.8.0 to 1.8.4
@@ -156,2 +156,19 @@ /** | ||
} | ||
} else { | ||
if (typeof $ !== 'undefined') { | ||
//ie8 检查下拉空间是否可以放下 | ||
var offsetY = Math.abs(flipOffset(offset, 1)[1]); | ||
var sourceH = utils.height(source); | ||
var ieToolbarH = 25; //js获取ie窗口高度矫正 | ||
if ($(window).height() + $(window).scrollTop() - tgtRegion.top - sourceH - offsetY - ieToolbarH < 0) { | ||
newElRegion.top = Math.max(0, tgtRegion.top - sourceH - offsetY); | ||
} | ||
//ie8 检查右侧空间是否可以放下 | ||
var offsetX = Math.abs(flipOffset(offset, 0)[0]); | ||
var sourceW = utils.width(source); | ||
if ($(window).width() + $(window).scrollLeft() - tgtRegion.left - sourceW - offsetX < 0) { | ||
newElRegion.left = $(window).width() - sourceW - offsetX; | ||
} | ||
} | ||
} | ||
@@ -158,0 +175,0 @@ |
@@ -0,0 +0,0 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ import utils from './utils'; |
@@ -0,0 +0,0 @@ import utils from './utils'; |
@@ -0,0 +0,0 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; |
@@ -0,0 +0,0 @@ # History |
@@ -176,2 +176,19 @@ 'use strict'; | ||
} | ||
} else { | ||
if (typeof $ !== 'undefined') { | ||
//ie8 检查下拉空间是否可以放下 | ||
var offsetY = Math.abs(flipOffset(offset, 1)[1]); | ||
var sourceH = _utils2['default'].height(source); | ||
var ieToolbarH = 25; //js获取ie窗口高度矫正 | ||
if ($(window).height() + $(window).scrollTop() - tgtRegion.top - sourceH - offsetY - ieToolbarH < 0) { | ||
newElRegion.top = Math.max(0, tgtRegion.top - sourceH - offsetY); | ||
} | ||
//ie8 检查右侧空间是否可以放下 | ||
var offsetX = Math.abs(flipOffset(offset, 0)[0]); | ||
var sourceW = _utils2['default'].width(source); | ||
if ($(window).width() + $(window).scrollLeft() - tgtRegion.left - sourceW - offsetX < 0) { | ||
newElRegion.left = $(window).width() - sourceW - offsetX; | ||
} | ||
} | ||
} | ||
@@ -178,0 +195,0 @@ |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ The MIT License (MIT) |
{ | ||
"name": "dom-align-lowie8", | ||
"version": "1.8.0", | ||
"version": "1.8.4", | ||
"description": "Align DOM Node Flexibly ", | ||
@@ -18,8 +18,5 @@ "keywords": [ | ||
"repository": { | ||
"type": "git", | ||
"url": "git@github.com:yiminghe/dom-align.git" | ||
"type": "git" | ||
}, | ||
"bugs": { | ||
"url": "http://github.com/yiminghe/dom-align/issues" | ||
}, | ||
"bugs": {}, | ||
"licenses": "MIT", | ||
@@ -51,5 +48,3 @@ "config": { | ||
}, | ||
"pre-commit": [ | ||
] | ||
"pre-commit": [] | ||
} |
@@ -0,0 +0,0 @@ # dom-align |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
88605
2243
1
1