Inspired by this thread and Rob's brilliance, I have been trying to solve one of my main annoyances with iframes… the fact that setting the height to a percentage simply does not work.
I've been examining the source and I see no reason it shouldn't work. I was using w3schools tryit editor and setting a height in percentages works there. I haven't been able to figure out what the difference is yet. Maybe it has something to to with the positioning as it did with the side bar position discussed in the aforementioned thread.
I found several javascript solutions that dynamically calculate the necessary height, but since we have to iframe our javascript, it's a bit of a catch-22.
If the devs were to tweak the [[iframe]] syntax to support all of the attributes that can be assigned to an iframe, there might be a better chance to use a javascript solution. I need to do some more testing away from Wikidot to see if it might work.
The missing attributes that might be useful are id, name, marginheight and marginwidth.
Does anyone have any tricks up their sleeves other than to play around with specific pixel height settings to adjust an iframe's height? A project I'm working on would benefit from a dynamic iframe height.
-Ed





