You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by yt...@apache.org on 2021/04/07 07:45:23 UTC

[incubator-datalab] 01/01: [DATALAB-2346] changed the location of context menu on List of resources page

This is an automated email from the ASF dual-hosted git repository.

ytykhun pushed a commit to branch DATALAB-2346
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git

commit 6ad85db43ff7d842cef2d1619e27b5297eff5704
Author: Yurii Tykhun <ty...@gmail.com>
AuthorDate: Wed Apr 7 10:44:29 2021 +0300

    [DATALAB-2346] changed the location of context menu on List of resources page
---
 .../main/resources/webapp/src/app/shared/bubble/bubble.component.ts | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/services/self-service/src/main/resources/webapp/src/app/shared/bubble/bubble.component.ts b/services/self-service/src/main/resources/webapp/src/app/shared/bubble/bubble.component.ts
index 9b8dba1..46d6d63 100644
--- a/services/self-service/src/main/resources/webapp/src/app/shared/bubble/bubble.component.ts
+++ b/services/self-service/src/main/resources/webapp/src/app/shared/bubble/bubble.component.ts
@@ -91,7 +91,11 @@ export class BubbleComponent implements OnDestroy {
         if (this.alternative) {
           this.changeDirection = !this.isInViewport(bubbleElem);
 
-          const isBubbleOutOfWrapper = bubbleElem.getBoundingClientRect().bottom > document.querySelector('.wrapper').getBoundingClientRect().bottom;
+          let isBubbleOutOfWrapper;
+          
+          if(document.querySelector('.wrapper')) {
+            isBubbleOutOfWrapper = bubbleElem.getBoundingClientRect().bottom > document.querySelector('.wrapper').getBoundingClientRect().bottom;
+          }
           
           (this.changeDirection || isBubbleOutOfWrapper) && this.bubbleService.updatePosition(element, bubbleElem, this.alternative);
         }

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org