figma2html
figma2html copied to clipboard
Add option for responsive iFrames
Describe the problem
Currently, using a chart produced by figma2html in an iFrame is difficult if the chart changes heights. Even if it doesn't, the host page for the iFrame needs to specify the height of the iFrame. That's not ideal.
Describe the proposed solution
There should be a checkbox to automatically include a responsive iFrame script such as pym.js as well as the javascript to enable the chart to work as a child page. Then it would be a simple matter to use a responsive iFrame in a parent page. That way, the parent page would no longer have to specify a height for the iFrame, and height changes would also be supported.
Alternatives considered
There are other similar libraries such as SideChain, but Pym.js would likely allow the most backwards compatibility.
Importance
would make my life easier
Code of Conduct
- [X] I agree to follow figma2html's Code of Conduct