Skip to content

We are encountering an issue rendering a PDF using Webview in Firefox #230

Answered by mad-moo
softue asked this question in Q&A
Discussion options

You must be logged in to vote

Hello! Thank you for pointing this out. We've had a look and this is an issue in how rio.Webview handles the height of some content. It'll be fixed in the next release.

In the meantime, wrapping the Webview in a rio.Column seems to work as a workaround. Try this:

    def build(self) -> rio.Component:
        return rio.Column(
            rio.Webview(
                rio.URL("https://www.thecampusqdl.com/uploads/files/pdf_sample_2.pdf"),
            ),
        )

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@softue
Comment options

Answer selected by softue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants