8000 Image not taking up full width of container · Issue #137 · laurenashpole/react-inner-image-zoom · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Apr 3, 2025. It is now read-only.
This repository was archived by the owner on Apr 3, 2025. It is now read-only.
Image not taking up full width of container #137
Open
@lopugit

Description

@lopugit

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0