From 553eeb034dbcdfb613a9e8d99b030e64090bda54 Mon Sep 17 00:00:00 2001 From: Yogesh Jain Date: Wed, 22 Apr 2020 15:35:43 +0530 Subject: [PATCH] Fixed tooltip crop issue for the large complex query with zoom factor. Fixes #5352 --- web/pgadmin/misc/static/explain/js/explain.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/pgadmin/misc/static/explain/js/explain.js b/web/pgadmin/misc/static/explain/js/explain.js index 21167775d..935f2815e 100644 --- a/web/pgadmin/misc/static/explain/js/explain.js +++ b/web/pgadmin/misc/static/explain/js/explain.js @@ -994,8 +994,8 @@ define('pgadmin.misc.explain', [ toolTipX = toolTipX < 0 ? 0 : (toolTipX); toolTipY = toolTipY < 0 ? 0 : (toolTipY); - toolTipX = toolTipX > graphContainer.width()-toolTipContainer[0].clientWidth ? graphContainer.width()-(toolTipContainer[0].clientWidth*zoomFactor) : toolTipX; - toolTipY = toolTipY > graphContainer.height()-toolTipContainer[0].clientHeight ? graphContainer.height()-(toolTipContainer[0].clientWidth*zoomFactor) : toolTipY; + toolTipX = toolTipX > graphContainer.width() - toolTipContainer[0].clientWidth ? toolTipX - (toolTipContainer[0].clientWidth+(pWIDTH* zoomFactor)) : toolTipX; + toolTipY = toolTipY > graphContainer.height() - toolTipContainer[0].clientHeight ? graphContainer.height() - toolTipContainer[0].clientHeight : toolTipY; // Show toolTip at respective x,y coordinates toolTipContainer.css({