diff --git a/dist/index.js b/dist/index.js index 6546711b..7b7cc911 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2495,8 +2495,8 @@ var Positioner = function () { var attachmentConstraints = generatePossibleConstraintsFor(constraint.attachment); var popoverConstraints = generatePossibleConstraintsFor(constraint.popover); - popoverConstraints.forEach(function (attachment) { - attachmentConstraints.forEach(function (popover) { + popoverConstraints.forEach(function (popover) { + attachmentConstraints.forEach(function (attachment) { validConstraints.push({ popover: popover, attachment: attachment }); }); }); @@ -3408,7 +3408,7 @@ if(false) { /* 28 */ /***/ (function(module, exports, __webpack_require__) { -exports = module.exports = __webpack_require__(29)(undefined); +exports = module.exports = __webpack_require__(29)(false); // imports diff --git a/package.json b/package.json index 434c9ce6..ab9aa035 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "popover.js", - "version": "0.2.32", + "version": "0.2.33", "description": "", "main": "dist/index.js", "scripts": { diff --git a/src/positioner.js b/src/positioner.js index 51355298..e911a6ab 100644 --- a/src/positioner.js +++ b/src/positioner.js @@ -234,8 +234,8 @@ class Positioner { const attachmentConstraints = generatePossibleConstraintsFor(constraint.attachment); const popoverConstraints = generatePossibleConstraintsFor(constraint.popover); - popoverConstraints.forEach((attachment) => { - attachmentConstraints.forEach((popover) => { + popoverConstraints.forEach((popover) => { + attachmentConstraints.forEach((attachment) => { validConstraints.push({ popover, attachment }); }); }); diff --git a/storybook/stories/styles.scss b/storybook/stories/styles.scss index 07f91d13..85ba7a29 100644 --- a/storybook/stories/styles.scss +++ b/storybook/stories/styles.scss @@ -53,6 +53,6 @@ body { } .popoverjs-content { - height: 200px; + height: 150px; width: 100px; }