mirror of
https://github.com/nasa/openmct.git
synced 2025-05-28 13:14:20 +00:00
[Info Service] Choose arrow direction
This commit is contained in:
parent
dfe909d6b5
commit
bebe53820f
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user