mirror of
https://github.com/nasa/openmct.git
synced 2025-05-30 22:24:18 +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);
|
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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user