[Info Service] Choose arrow direction

This commit is contained in:
Victor Woeltjen 2015-10-02 09:36:27 -07:00
parent dfe909d6b5
commit bebe53820f

View File

@ -84,11 +84,10 @@ define(
popup = this.popupService.display(bubble, position, options); popup = this.popupService.display(bubble, position, options);
// Style the bubble according to how it was positioned // Style the bubble according to how it was positioned
if (popup.goesLeft()) { scope.bubbleLayout = [
scope.bubbleLayout = 'arw-right'; popup.goesLeft() ? 'arw-right' : 'arw-left',
} else if (popup.goesRight()) { popup.goesUp() ? 'arw-btm' : 'arw-top'
scope.bubbleLayout = 'arw-left'; ].join(' ');
}
// Return a function to dismiss the info bubble // Return a function to dismiss the info bubble
return function dismiss() { return function dismiss() {