diff options
author | Alex Yatskov <alex@foosoft.net> | 2017-03-11 17:48:30 -0800 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2017-03-11 17:48:30 -0800 |
commit | 83e2fd47485f7036c387563277db06aec14aa462 (patch) | |
tree | d0335ae917308dcb22bef19ad6b909cfd3f4b366 /ext/fg/js/driver.js | |
parent | 2c86e875765b1ed4f1753ab51af5583cc9606760 (diff) |
add options for setting popup width, height, offset
Diffstat (limited to 'ext/fg/js/driver.js')
-rw-r--r-- | ext/fg/js/driver.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/fg/js/driver.js b/ext/fg/js/driver.js index 5de762ca..fddfbc29 100644 --- a/ext/fg/js/driver.js +++ b/ext/fg/js/driver.js @@ -154,7 +154,7 @@ window.driver = new class { const sentence = docSentenceExtract(textSource, this.options.anki.sentenceExt); const url = window.location.href; - this.popup.showNextTo(textSource.getRect()); + this.popup.showNextTo(textSource.getRect(), this.options); this.popup.showTermDefs(definitions, this.options, {sentence, url}); this.lastTextSource = textSource; @@ -177,7 +177,7 @@ window.driver = new class { const sentence = docSentenceExtract(textSource, this.options.anki.sentenceExt); const url = window.location.href; - this.popup.showNextTo(textSource.getRect()); + this.popup.showNextTo(textSource.getRect(), this.options); this.popup.showKanjiDefs(definitions, this.options, {sentence, url}); this.lastTextSource = textSource; @@ -204,7 +204,7 @@ window.driver = new class { handleError(error, textSource) { if (window.orphaned) { if (textSource && this.options.scanning.requireShift) { - this.popup.showNextTo(textSource.getRect()); + this.popup.showNextTo(textSource.getRect(), this.options); this.popup.showOrphaned(); } } else { |