Comparing version 1.0.1 to 1.0.2
10
index.js
@@ -294,3 +294,3 @@ /** | ||
if (visibleRect && (overflow.adjustX || overflow.adjustY)) { | ||
if(overflow.adjustX) { | ||
if (overflow.adjustX) { | ||
// 如果横向不能放下 | ||
@@ -309,3 +309,3 @@ if (isFailX(elFuturePos, elRegion, visibleRect)) { | ||
if(overflow.adjustY) { | ||
if (overflow.adjustY) { | ||
// 如果纵向不能放下 | ||
@@ -361,2 +361,8 @@ if (isFailY(elFuturePos, elRegion, visibleRect)) { | ||
} | ||
return { | ||
points: points, | ||
offset: offset, | ||
overflow: overflow | ||
}; | ||
} | ||
@@ -363,0 +369,0 @@ |
{ | ||
"name": "dom-align", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Align DOM Node Flexibly ", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -13,3 +13,6 @@ # dom-align | ||
[![npm download][download-image]][download-url] | ||
[![Sauce Test Status](https://saucelabs.com/buildstatus/dom-align)](https://saucelabs.com/u/dom-align) | ||
[![Sauce Test Status](https://saucelabs.com/browser-matrix/dom-align.svg)](https://saucelabs.com/u/dom-align) | ||
[npm-image]: http://img.shields.io/npm/v/dom-align.svg?style=flat-square | ||
@@ -16,0 +19,0 @@ [npm-url]: http://npmjs.org/package/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
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
40470
905
119