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

Image not taking up full width of container #137

Open
lopugit opened this issue Jan 16, 2023 · 0 comments
Open

Image not taking up full width of container #137

lopugit opened this issue Jan 16, 2023 · 0 comments

Comments

@lopugit
Copy link

lopugit commented Jan 16, 2023

Hello, thanks so much for making this great and easy to use library.

I'm just running into an issue where an image will not take up more than it's native width in both unzoomed and zoomed in mode.

I have fixed the unzoomed mode issue by setting the width argument to a pixel value much greater than the images actual width, the image is then still constrained by the 100% width limit of the parent but it will grow larger than its native pixel width.

However even with this fix, the zoom functionality doesn't seem to work, setting zoomScale to a custom value seems to make the image show with a border and not be centered properly.

Is there a predefined way to make an image work and render at resolutions higher than its native resolution?

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

1 participant