1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-30 07:02:28 +01:00

Fix visual bell completion list sizing thing.

This commit is contained in:
Kris Maglione
2011-10-26 01:10:12 -04:00
parent efb39f26a8
commit e50726ae01
2 changed files with 8 additions and 3 deletions

View File

@@ -265,7 +265,12 @@ var MOW = Module("mow", {
this.visible = true;
},
get spaceNeeded() Math.max(0, DOM("#" + config.ids.commandContainer, document).rect.bottom - window.innerHeight),
get spaceNeeded() {
if (DOM("#dactyl-bell", document).isVisible)
return 0;
return Math.max(0, DOM("#" + config.ids.commandContainer, document).rect.bottom
- window.innerHeight);
},
/**
* Update or remove the multi-line output widget's "MORE" prompt.

View File

@@ -376,8 +376,8 @@ var DOM = Class("DOM", {
* @returns {boolean}
*/
get isVisible() {
let style = this.style;
return style.visibility == "visible" && style.display != "none";
let style = this[0] && this.style;
return style && style.visibility == "visible" && style.display != "none";
},
get editor() {