From aef9b2308a96be9be2236005d854a0e1d47cad00 Mon Sep 17 00:00:00 2001 From: Simon Perepelitsa Date: Wed, 14 Apr 2021 01:28:34 +0300 Subject: [PATCH] Fix profiler pop-up extending beyond the window, impossible to scroll (#492) --- lib/html/includes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/html/includes.js b/lib/html/includes.js index d0608d2e..c3065747 100644 --- a/lib/html/includes.js +++ b/lib/html/includes.js @@ -401,7 +401,7 @@ var _MiniProfiler = (function() { var px = button.offsetTop - 1, // position next to the button we clicked windowHeight = window.innerHeight, - maxHeight = windowHeight - 40; // make sure the popup doesn't extend below the fold + maxHeight = windowHeight - px - 40; // make sure the popup doesn't extend below the fold popup.style[options.renderVerticalPosition] = "".concat(px, "px"); popup.style.maxHeight = "".concat(maxHeight, "px");