mikecousins/react-pdf-js

[feature] Fill parent width

Closed this issue · 3 comments

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:

Arunscape@bafa1ce

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.