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.
1 parent 10c2ea3 commit a99102bCopy full SHA for a99102b
lib/web_console/templates/console.js.erb
@@ -380,8 +380,13 @@ REPLConsole.prototype.install = function(container) {
380
var clientHeightStart = consoleOuter.clientHeight;
381
382
var doDrag = function(e) {
383
- container.style.height = (startHeight + startY - e.clientY) + 'px';
+ var height = startHeight + startY - e.clientY;
384
consoleOuter.scrollTop = scrollTopStart + (clientHeightStart - consoleOuter.clientHeight);
385
+ if (height > document.documentElement.clientHeight) {
386
+ container.style.height = document.documentElement.clientHeight;
387
+ } else {
388
+ container.style.height = height + 'px';
389
+ }
390
shiftConsoleActions();
391
};
392
0 commit comments