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:
@@ -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 = "";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user