1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-05 19:44:12 +01:00

Fix completion list sizing issues.

This commit is contained in:
Kris Maglione
2011-10-03 07:11:01 -04:00
parent 3fa67e8ec4
commit ef849d436e
3 changed files with 20 additions and 14 deletions

View File

@@ -244,7 +244,7 @@ var MOW = Module("mow", {
let doc = this.widget.contentDocument;
let trim = Math.max(0, DOM("#" + config.ids.commandContainer, document).rect.bottom - window.innerHeight);
let trim = this.spaceNeeded;
let availableHeight = config.outputHeight - trim;
if (this.visible)
availableHeight += parseFloat(this.widgets.mowContainer.height || 0);
@@ -262,11 +262,7 @@ var MOW = Module("mow", {
this.visible = true;
},
get spaceNeeded() {
let rect = this.widgets.commandbar.commandline.getBoundingClientRect();
let offset = rect.bottom - window.innerHeight;
return Math.max(0, offset);
},
get spaceNeeded() Math.max(0, DOM("#" + config.ids.commandContainer, document).rect.bottom - window.innerHeight),
/**
* Update or remove the multi-line output widget's "MORE" prompt.