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

Preview iFrames are not resized #13

Open
davidhund opened this issue Oct 6, 2016 · 2 comments
Open

Preview iFrames are not resized #13

davidhund opened this issue Oct 6, 2016 · 2 comments

Comments

@davidhund
Copy link

The iframes are not resizable and do not scale automatically with the content. See (also) my comment at csstools/mdcss#8 (comment)

Is this a known bug?

@jarodtaylor
Copy link

I'm surprised more people aren't reporting this. Not only is resize a reserved javascript word, but even when I go into examples.js and change it to resizeFunc, it only removes the console error. The iframes aren't resizing after the first one (maybe two) iframes on the page. Not only that, but the html/body styles aren't being added to these iframes, either. My guess is that the idoc.close() is killing it prematurely. I've messed around with the example.js file and I can't seem to get things to work well no matter where I put things. Unfortunately, it makes mdcss unusable for me. Otherwise, it's a great little tool.

@tbekaert
Copy link
Contributor

@jarodtaylor I've submit a pull request fixing that issue and don't have any problems using it again, hope it's good for you too (here it is #16)

You can just reference it as "mdcss-theme-github": "tbekaert/mdcss-theme-github#fix/reserved-word" in your package.json while @jonathantneal review it :)

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

3 participants