Skip to content

Commit

Permalink
Fix profiler pop-up extending beyond the window, impossible to scroll (
Browse files Browse the repository at this point in the history
  • Loading branch information
semaperepelitsa committed Apr 13, 2021
1 parent 0a31c78 commit aef9b23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/html/includes.js
Expand Up @@ -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");
Expand Down

0 comments on commit aef9b23

Please sign in to comment.