Просмотр исходного кода

[beeswax] Fix positioning of column stats pop-over

Johan Ahlen 10 лет назад
Родитель
Сommit
1d75e48
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      apps/beeswax/src/beeswax/templates/execute.mako

+ 2 - 2
apps/beeswax/src/beeswax/templates/execute.mako

@@ -1332,9 +1332,9 @@ $(document).ready(function () {
                       var termsUrl = "/${ app_name }/api/table/" + viewModel.database() + "/" + _table.data("table") + "/terms/" + col.name + "/";
                       $("#columnAnalysisStats .content").html("<i class='fa fa-spinner fa-spin'></i>");
                       $("#columnAnalysisTerms .content").html("<i class='fa fa-spinner fa-spin'></i>");
-                      $("#columnAnalysis").show().css("top", _link.position().top - $("#columnAnalysis").outerHeight() / 2 + _link.outerHeight() / 2).css("left", _link.position().left + _link.outerWidth());
+                      $("#columnAnalysis").show().css("top", _link.offset().top - $("#columnAnalysis").outerHeight() / 2 + _link.outerHeight() / 2).css("left", _link.offset().left + _link.outerWidth());
                       showColumnStats(statsUrl, refreshUrl, termsUrl, col.name, STATS_PROBLEMS, function () {
-                        $("#columnAnalysis").show().css("top", _link.position().top - $("#columnAnalysis").outerHeight() / 2 + _link.outerHeight() / 2).css("left", _link.position().left + _link.outerWidth());
+                        $("#columnAnalysis").show().css("top", _link.offset().top - $("#columnAnalysis").outerHeight() / 2 + _link.outerHeight() / 2).css("left", _link.offset().left + _link.outerWidth());
                       });
                     });
                   });