ソースを参照

HUE-6077 [core] Fixes tooltip attachment container

Enrico Berti 8 年 前
コミット
0db78fa840
1 ファイル変更10 行追加10 行削除
  1. 10 10
      desktop/core/src/desktop/static/desktop/js/bootstrap-tooltip.js

+ 10 - 10
desktop/core/src/desktop/static/desktop/js/bootstrap-tooltip.js

@@ -93,9 +93,9 @@
       this.timeout = setTimeout(function () {
         if (self.hoverState == 'in') self.show()
       }, self.options.delay.show)
-    }
+    },
 
-    , leave: function (e) {
+    leave: function (e) {
       var self = $(e.currentTarget)[this.type](this._options).data(this.type)
 
       if (this.timeout) clearTimeout(this.timeout)
@@ -108,13 +108,13 @@
     },
 
     show: function () {
-      var $tip
-        , pos
-        , actualWidth
-        , actualHeight
-        , placement
-        , tp
-        , e = $.Event('show')
+      var $tip,
+        pos,
+        actualWidth,
+        actualHeight,
+        placement,
+        tp,
+        e = $.Event('show')
 
       if (!this.$element.is(':visible')) {
         return;
@@ -346,7 +346,7 @@
     title: '',
     delay: 0,
     html: false,
-    container: false
+    container: 'body'
   }