Skip to content

Commit

Permalink
Adjust auto constraint ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
AshesOfOwls committed Mar 19, 2018
1 parent 981d62a commit dbdc9d5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "popover.js",
"version": "0.2.33",
"version": "0.2.34",
"description": "",
"main": "dist/index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/positioner.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit dbdc9d5

Please sign in to comment.