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

border-box model... #33

Closed
shawnhaigh opened this issue Apr 30, 2014 · 3 comments
Closed

border-box model... #33

shawnhaigh opened this issue Apr 30, 2014 · 3 comments
Assignees
Labels

Comments

@shawnhaigh
Copy link

In modern CSS frameworks box-model: border-box is applied globally ex.

*, *:before, *:after {box-model: border-box;}

When implementing iframeResizer in this environment, the height calculation is off slightly and the frame re-sizes continuously making the page repaint and the CPU shoots up to 100%.

Placing {border-box: content-box} globally seems to fix the issue but breaks the framework.

Any ideas on what can be done so iframeResizer can live happily inside a css framework?

If you need more info just let me know, Thanks in advance for any insight.

@davidjbradshaw davidjbradshaw self-assigned this Apr 30, 2014
@davidjbradshaw
Copy link
Owner

Can you please send me an example, I tried putting that CSS into the test page, but couldn't repro the issue.

@shawnhaigh
Copy link
Author

Heh!! I closed all my windows and restarted my dev environment and it seems to work now. My apologies ...

@davidjbradshaw
Copy link
Owner

OK cool glad to hear it's working, let me know if you workout how to repro it.

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