Skip to content

Conversation

@vitonsky
Copy link
Member

@vitonsky vitonsky commented Jul 23, 2025

Fix #549, fix #529

Changes

#549 - the problem is root container with popup content is in page flow. The problem is fixed with set position: absolute

#529 - the problem is site https://www.gnu.org/software/findutils/ have styles on body that is align body by center and limit its size. The root container is nested inside body, so it shifts coordinates too. As result, root node coordinate is not 0/0, but instead 250/0, so when popup coordinates is set as 100/0, it actually renders on 350/0.

The problem is fixed with substraction a root container coordinates of target coordinates.

@vitonsky vitonsky linked an issue Jul 23, 2025 that may be closed by this pull request
@vitonsky vitonsky merged commit 28b3116 into master Jul 23, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Injected contentscript div may affect page content Translate button is far from the selections

2 participants