glutanimate / popup-dictionary

Pop-up Dictionary Add-on for Anki
https://ankiweb.net/shared/info/153625306
Other
77 stars 15 forks source link

Pop-up appears 1 inch to right of word #22

Open Nafafi50 opened 4 years ago

Nafafi50 commented 4 years ago

Problem description

Minor issue but kind of annoying: the pop-up always appears about 1 inch to the right of the word I'm looking up.

image

Checklist

Please replace the space inside the brackets with an x if the following items apply:

Information about your Anki set-up

Version 2.1.15

If you are using Anki 2.1

Please open Anki, go to Help → About, click on "Copy Debug Info", and paste the result between the backticks below (if the button does not appear you are using an older version of Anki 2.1 and will need to update first):

Anki 2.1.15 (442df9d6) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3
Platform: Windows 10
Flags: frz=True ao=True sv=1

Add-ons:

Pop-up Dictionary beta

Please fill in details about your operating system (Windows/macOS/Linux, which version):

Please open Anki, go to Tools → Add-ons, take a screenshot of your installed add-ons, and paste it below:

image

Nafafi50 commented 4 years ago

For the record, I just upgraded from 2.0 (uninstalled first). I also installed a bunch of new add-ons including the Amboss add on, however when I noticed the issue with Pop-up dictionary I deleted all the add-ons, reinstalled Anki altogether, and reinstalled Pop-up dictionary. However, the problem persisted. Thanks for your help! (And amazing add-on by the way!)

IVIatelight commented 4 years ago

I have this problem too (or similar), what I notice is that this is because of css style width and margin added to .card {} Example 1 .card { width: 440px; } Example 2 .card { margin-left: 710px; } Example 3 .card { margin-top: 200px; } Offset caused by width and margin is added twice to position of the pop-up window, that’s my guess.