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

calculating size of iframe with borders #683

Closed
ivangermes opened this issue Mar 21, 2019 · 2 comments
Closed

calculating size of iframe with borders #683

ivangermes opened this issue Mar 21, 2019 · 2 comments
Labels

Comments

@ivangermes
Copy link

ivangermes commented Mar 21, 2019

If iframe have a borders, size calculation is incorrect.
So iframe has a scroll, in case scrolling="auto".
How can i add an iframe borders sizes to size calculation?

@ivangermes
Copy link
Author

ivangermes commented Mar 21, 2019

Quick fix is set box-sizing: content-box; for iframe.
But in general, I think it's a bug in iframe size calculation logic.

P.S. In addition to the border, iframe can has paddings.

@davidjbradshaw
Copy link
Owner

PLease feel free to submit a PR for this

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

No branches or pull requests

2 participants