Add getContainer to popup

This commit is contained in:
toasted-nutbread 2019-12-15 21:12:21 -05:00
parent 4ba93b0770
commit c4719cb7f4
2 changed files with 5 additions and 1 deletions

View File

@ -22,7 +22,7 @@ class Frontend extends TextScanner {
super(
window,
ignoreNodes,
[popup.container],
[popup.getContainer()],
[(x, y) => this.popup.containsPoint(x, y)]
);

View File

@ -135,6 +135,10 @@ class Popup {
}
}
getContainer() {
return this.container;
}
getContainerRect() {
return this.container.getBoundingClientRect();
}