Skip to content

Commit ec2328d

Browse files
committed
Change smart algorithm to cycle through directions counter-clockwise.
1 parent e245d8c commit ec2328d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/angular-tooltips.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@
211211
return '_' + side;
212212
}).join(' ');
213213
}
214-
, directions = ['_top', '_left', '_bottom', '_right', '_top _left', '_top _right', '_bottom _left', '_bottom _right']
214+
, directions = ['_top', '_top _left', '_left', '_bottom _left', '_bottom', '_bottom _right', '_right', '_top _right']
215215
, smartPosition = function smartPosition(tipElement, tooltipElement, startSide) {
216216

217217
var directionsIndex = directions.indexOf(getSideClasses(startSide))

0 commit comments

Comments
 (0)