react-pdf-js
react-pdf-js copied to clipboard
[feature] Fill parent width
Hi,
I was looking into making the component fill the parent element. (Being new here), it seems like the library has gone under a pretty big rewrite... (for the better it seems, using TypeScript and hooks and all that good stuff 😍)
Anyways, I looked at the issue #41 and PR #44, and made a super naive/n00b attempt at implementing this functionality:
https://github.com/Arunscape/react-pdf-js/commit/bafa1ce667c18b71aed37a19dcc49a8876f23304
maybe someone who's a bit more experienced can look into actually integrating this, or providing some recommendations 😅 (to be honest, I'm not sure how to test this...)
any update on this?
the pr is closed and merged but is not in production?
This should work now. Let me know.