Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Box and Polygon Misplaced when zoom in over 200% #181

Open
cwhuang119 opened this issue Nov 11, 2021 · 2 comments
Open

[Bug] Box and Polygon Misplaced when zoom in over 200% #181

cwhuang119 opened this issue Nov 11, 2021 · 2 comments

Comments

@cwhuang119
Copy link

The location of box or polygon will shift to the right after zoom in over 200%.
Original location (https://imgur.com/lw50E3Z)
Shift location (https://imgur.com/vzsvElo)

@cwhuang119 cwhuang119 changed the title Box and Polygon Misplaced when zoom in over 200% [Bug] Box and Polygon Misplaced when zoom in over 200% Nov 11, 2021
@parthpatel303
Copy link

@cwhuang119 did you find the solution for above issue? Can you please provide info on how did you fix zoom issue?

Thanks!

@wesmorishita
Copy link

wesmorishita commented Jun 6, 2024

I had this same issue, but it was caused by my base Tailwind styles which was setting the img { max-width: auto}

Try setting the max-width to inherit instead (or add it to the img container):

img {
    max-width: inherit;
    height: inherit;
}

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

No branches or pull requests

3 participants