Open mkorytskyi opened 2 years ago
I am facing the same problem. Any inputs are highly appreciated.
TIA
After a full day trails with window event listeners and other methods. This simple style settings worked like a charm. Hope this might help others
<DocViewer pluginRenderers={DocViewerRenderers} documents={docs} style={{height: '95vh', width: '100%'}}/>
This is still a problem and setting the style as shown above hasn't fixed it.
After any window resize rendered content disappears, so it means that document disappears from DOM