From bebe53820fbadb102d63638d307c7bd957e13f69 Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Fri, 2 Oct 2015 09:36:27 -0700 Subject: [PATCH] [Info Service] Choose arrow direction --- platform/commonUI/inspect/src/services/InfoService.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/platform/commonUI/inspect/src/services/InfoService.js b/platform/commonUI/inspect/src/services/InfoService.js index e490171d08..e960918a3f 100644 --- a/platform/commonUI/inspect/src/services/InfoService.js +++ b/platform/commonUI/inspect/src/services/InfoService.js @@ -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() {