1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-31 03:25:46 +01:00

Sizing hacks for REPL modes.

This commit is contained in:
Kris Maglione
2011-10-04 00:43:02 -04:00
parent 64df9d9740
commit f1e4e9958c
6 changed files with 29 additions and 39 deletions

View File

@@ -252,10 +252,13 @@ var MOW = Module("mow", {
doc.body.style.minWidth = this.widgets.commandbar.commandline.scrollWidth + "px";
this.widgets.mowContainer.height = Math.min(doc.body.clientHeight, availableHeight) + "px";
this.timeout(function ()
this.widgets.mowContainer.height = Math.min(doc.body.clientHeight, availableHeight) + "px",
0);
function adjust() {
let wantedHeight = doc.body.clientHeight;
this.widgets.mowContainer.height = Math.min(wantedHeight, availableHeight) + "px",
this.wantedHeight = Math.max(0, wantedHeight - availableHeight);
}
adjust.call(this);
this.timeout(adjust);
doc.body.style.minWidth = "";