Adjust width and height of iframe to fit with content in it?
I need a solution for **auto-adjusting** the `width` and `height` of an `iframe` to barely fit its content. The point is that the width and height can be changed after the `iframe` has been loaded. I guess I need an event action to deal with the change in dimensions of the body contained in the iframe.
Your assumption is right on the money. You can give it a standard width and height using inline styling or a CSS declaration. After which, in your JS you can adjust the iframe/node in the DOM tree according the body size.