mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 18:54:12 +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;
|
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.
|
* Update or remove the multi-line output widget's "MORE" prompt.
|
||||||
|
|||||||
@@ -376,8 +376,8 @@ var DOM = Class("DOM", {
|
|||||||
* @returns {boolean}
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
get isVisible() {
|
get isVisible() {
|
||||||
let style = this.style;
|
let style = this[0] && this.style;
|
||||||
return style.visibility == "visible" && style.display != "none";
|
return style && style.visibility == "visible" && style.display != "none";
|
||||||
},
|
},
|
||||||
|
|
||||||
get editor() {
|
get editor() {
|
||||||
|
|||||||
Reference in New Issue
Block a user