Alcumus/react-doc-viewer

After window resize content disappears

Opened this issue · 3 comments

After any window resize rendered content disappears, so it means that document disappears from DOM

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.