You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using MaterialUI v4 and I'm trying to use react-image-enlarger inside of a modal. It looks like the location is incorrect as long as the modal has "transform" set.
In the sandbox you can comment/uncomment the transform to see how it is effecting the image placement.
The text was updated successfully, but these errors were encountered:
ebk46
changed the title
Wrong location of image container has "transform" property
Wrong location of image if container has "transform" property
Aug 12, 2019
ebk46
changed the title
Wrong location of image if container has "transform" property
Wrong location of image if container has "transform" style
Aug 12, 2019
Hmm, interesting. Good catch. I'm not sure entirely what's going on as getBoundingClientRect should take into account transforms. I'll try and debug and get a solution to this soon.
I'm using MaterialUI v4 and I'm trying to use react-image-enlarger inside of a modal. It looks like the location is incorrect as long as the modal has "transform" set.
Sandbox: https://codesandbox.io/s/react-image-enlarge-modal-bug-pviqp
In the sandbox you can comment/uncomment the transform to see how it is effecting the image placement.
The text was updated successfully, but these errors were encountered: