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

viewer hides scrollbar when shows, but don't restore it after closing for body inline style

Open nahuel opened this issue 4 years ago • 0 comments

If your body tag is inline styled like <body style="overflow-x:hidden;overflow-y:scroll"> to always show the scrollbar, then react-viewer hides it but not restores it after close. This can be easily fixed by styling body using an external CSS rule instead of an inline style, but I think react-viewer is misbehaving here.

nahuel avatar Feb 09 '21 16:02 nahuel