We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4a660ce + 0b4f7c9 commit 6a1a159Copy full SHA for 6a1a159
src/DebugBar/Resources/debugbar.js
@@ -461,13 +461,18 @@ if (typeof(PhpDebugBar) == 'undefined') {
461
462
// dragging of resize handle
463
var dragging = false;
464
+ var min_h = 40;
465
+ var max_h = $(window).height() - this.$header.height() - 10;
466
this.$resizehdle.on('mousedown', function(e) {
467
var orig_h = $body.height(), pos_y = e.pageY;
468
dragging = true;
469
470
$body.parents().on('mousemove', function(e) {
471
if (dragging) {
472
var h = orig_h + (pos_y - e.pageY);
473
+ // Respect the min/max values
474
+ h = Math.min(h, max_h);
475
+ h = Math.max(h, min_h);
476
$body.css('height', h);
477
localStorage.setItem('phpdebugbar-height', h);
478
self.recomputeBottomOffset();
0 commit comments