From dbdc9d50fd01f8ec0b607e6ec337bd200077c75c Mon Sep 17 00:00:00 2001 From: Quinn Elwood Date: Sun, 18 Mar 2018 22:19:46 -0700 Subject: [PATCH] Adjust auto constraint ordering --- dist/index.js | 4 ++-- package.json | 2 +- src/positioner.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dist/index.js b/dist/index.js index 7b7cc911..b28adb41 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2287,10 +2287,10 @@ var generatePossibleConstraintsFor = function generatePossibleConstraintsFor(sid switch (side) { case 'top': case 'bottom': - return [side + ' left', side + ' center', side + ' right']; + return [side + ' center', side + ' left', side + ' right']; case 'left': case 'right': - return [side + ' top', side + ' center', side + ' bottom']; + return [side + ' center', side + ' top', side + ' bottom']; default: return [side]; } diff --git a/package.json b/package.json index ab9aa035..77d9babc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "popover.js", - "version": "0.2.33", + "version": "0.2.34", "description": "", "main": "dist/index.js", "scripts": { diff --git a/src/positioner.js b/src/positioner.js index e911a6ab..b7d96919 100644 --- a/src/positioner.js +++ b/src/positioner.js @@ -60,10 +60,10 @@ const generatePossibleConstraintsFor = (side) => { switch (side) { case 'top': case 'bottom': - return [`${side} left`, `${side} center`, `${side} right`]; + return [`${side} center`, `${side} left`, `${side} right`]; case 'left': case 'right': - return [`${side} top`, `${side} center`, `${side} bottom`]; + return [`${side} center`, `${side} top`, `${side} bottom`]; default: return [side]; }