Kaynağa Gözat

fix: scroll issue and positioning of info-popover

Torkel Ödegaard 8 yıl önce
ebeveyn
işleme
dd3e594dd7
1 değiştirilmiş dosya ile 8 ekleme ve 1 silme
  1. 8 1
      public/app/core/components/info_popover.ts

+ 8 - 1
public/app/core/components/info_popover.ts

@@ -40,7 +40,14 @@ export function infoPopover() {
           openOn: openOn,
           openOn: openOn,
           hoverOpenDelay: 400,
           hoverOpenDelay: 400,
           tetherOptions: {
           tetherOptions: {
-            offset: offset
+            offset: offset,
+            constraints: [
+                {
+                  to: 'window',
+                  attachment: 'together',
+                  pin: true
+                }
+              ],
           }
           }
         });
         });