popper.js dep

This commit is contained in:
Nabeel Shahzad
2017-08-16 17:27:59 -05:00
parent f4365053a0
commit 09502153ed
24 changed files with 68 additions and 47 deletions
+1 -2
View File
@@ -8,8 +8,7 @@ git add -f ../../dist/*
git add ../../bower.json
git commit --no-verify -m "chore(automatic): v${version} (dist files)"
git tag -a v${version} -m "chore(automatic): v${version} (tag release)"
rm -rf ../../dist
rm -f ../../bower.json
git rm ../../dist/**/*
git rm ../../dist/*
git rm ../../bower.json
git commit --no-verify -m "chore(automatic): v${version} (dist files cleanup)"
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "popper.js",
"version": "1.12.0",
"version": "1.12.2",
"description": "A kickass library to manage your poppers",
"homepage": "https://popper.js.org",
"repository": {
@@ -41,7 +41,7 @@
"devDependencies": {
"@popperjs/bundle": "^1.0.2",
"@popperjs/eslint-config-popper": "^1.0.0",
"nuget-publish": "^1.0.0",
"nuget-publish": "^1.0.1",
"@popperjs/test": "^1.0.0",
"@popperjs/test-utils": "^1.0.0",
"eslint": "^4.1.1"
@@ -79,6 +79,9 @@ export default {
* '10 - 5vh + 3%'
* '-10px + 5vh, 5px - 6%'
* ```
* > **NB**: If you desire to apply offsets to your poppers in a way that may make them overlap
* > with their reference element, unfortunately, you will have to disable the `flip` modifier.
* > More on this [reading this issue](https://github.com/FezVrasta/popper.js/issues/373)
*
* @memberof modifiers
* @inner
@@ -17,7 +17,7 @@ export default function inner(data) {
const subtractLength = ['top', 'left'].indexOf(basePlacement) === -1;
popper[isHoriz ? 'left' : 'top'] =
reference[placement] -
reference[basePlacement] -
(subtractLength ? popper[isHoriz ? 'width' : 'height'] : 0);
data.placement = getOppositePlacement(placement);