浏览代码

fix: scroll issue and positioning of info-popover

Torkel Ödegaard 8 年之前
父节点
当前提交
dd3e594dd7
共有 1 个文件被更改,包括 8 次插入1 次删除
  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,
           hoverOpenDelay: 400,
           tetherOptions: {
-            offset: offset
+            offset: offset,
+            constraints: [
+                {
+                  to: 'window',
+                  attachment: 'together',
+                  pin: true
+                }
+              ],
           }
         });