[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);
// Style the bubble according to how it was positioned
if (popup.goesLeft()) {
scope.bubbleLayout = 'arw-right';
} else if (popup.goesRight()) {
scope.bubbleLayout = 'arw-left';
}
scope.bubbleLayout = [
popup.goesLeft() ? 'arw-right' : 'arw-left',
popup.goesUp() ? 'arw-btm' : 'arw-top'
].join(' ');
// Return a function to dismiss the info bubble
return function dismiss() {