Closed phlpsong closed 3 months ago
Please review this PR.
Could you share some examples here? I'm not quite sure what you meant by the fixed position.
Certainly, the popups in settings have a fixed position no matter where I click on them. Please see recording below
https://github.com/tisfeng/Easydict/assets/89069957/06b75f98-cf8f-4839-9e5b-321616abcd9c
Yes, the NSMenu should be displayed in a fixed position, e.g. clicking on the bottom left corner of the view, which looks best.
I didn't look at the detailed reason why the atLocation coordinates would be drifting, it seems a little strange.
Also, I noticed that NSMenu is used in other places, such as EZSelectLanguageButton
, we can write a Category for NSMenu, making it convenient to use to show NSMenu at the bottom left of a view.
Thanks, I got you. 👍
But personally, I think the Picker-like component is not suitable in this case, popup the menu from the left corner looks better.
Please try the latest changes and let me know what you think.
ok, we don't need to change the system Picker, just the NSMenu.
close https://github.com/tisfeng/Easydict/issues/456