I have a web site that is using TW5 as the front-end. The TiddlyWiki is delivered by the server. A subset of tiddlers contain simple iframe tags that href pages specifically designed to be displayed inside tiddlers.
The iframe JavaScript has access to all parent TW tiddlers and functions, since from the same domain (origin). The iframe width is simply 100% - but the height of the tiddlers containing the iframes is what I am having trouble with.
Technically, would like the tiddler to dynamically adjust itâs height based on the getComputedStyle(iframe).height
Some web pages are of a fixed height - so those are a none issue as can set the height of the iframe - the tiddler adjusts to that height. But some iframe heights vary based on the data content of the iframe.
Have tried various methods, searches for a solution have been futile - though sure has come up before, and probably simple solution. I could directly modify the tiddler DOM - ugly and TW anti-pattern.
What is the TW5 way of dynamically adjust tiddler height based on the current height of the loaded iframe it contains?