Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show iframe as full height #98

Open
pmeems opened this issue May 20, 2022 · 0 comments
Open

Show iframe as full height #98

pmeems opened this issue May 20, 2022 · 0 comments

Comments

@pmeems
Copy link

pmeems commented May 20, 2022

We use docson to show referenced JSON in our JSON Schema documentation.
Here's an example: https://delta-datawarehouse.readthedocs.io/en/latest/explanation.html#unique-id-of-the-farmer

The docson widget is loaded in an iframe. How to set its height to the content height so we get rid of the scrollbars?
image

I tried adding frame.height = event.data.height + 18; to the event.data.action == "ready" block in widget.js
But that didn't help.

Please advice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant