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:
@@ -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.
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user