react-doc-viewer icon indicating copy to clipboard operation
react-doc-viewer copied to clipboard

Can support not render again when resize page?

Open wqudhqdh opened this issue 1 year ago • 5 comments

why render again when resize page? image

wqudhqdh avatar Jul 24 '23 10:07 wqudhqdh

@cyntler Desperate for a solution

wqudhqdh avatar Jul 24 '23 10:07 wqudhqdh

I made a fork and removed what was causing this to re render on window resize. Its working now if you want to try it out. https://github.com/boxwood-connor/react-doc-viewer

boxwood-connor avatar Jan 25 '24 22:01 boxwood-connor

I made a fork and removed what was causing this to re render on window resize. Its working now if you want to try it out. https://github.com/boxwood-connor/react-doc-viewer

@boxwood-connor I have tried you repo but have the same problem. any idea why ?

mathieugruson avatar Feb 07 '24 19:02 mathieugruson

@mathieugruson weird! I'm not sure why, this is now working perfectly for us. As you can see from my commits, it really is a tiny change to make it work.

boxwood-connor avatar Feb 07 '24 19:02 boxwood-connor

@boxwood-connor ok thanks i will look deeper in my own code !

mathieugruson avatar Feb 07 '24 20:02 mathieugruson