mikekelly / hal-browser

An API browser for the hal+json media type
MIT License
835 stars 157 forks source link

Fix for : documentation iframe does not scale to 100% height #51

Closed jelmerk closed 9 years ago

jelmerk commented 9 years ago

When you click on a documentation link in the halbrowser it opens this documentation in an iframe in the right hand column.

On recent versions of safari / firefox / chrome on the mac this iframe is not scaled to 100% height despite the following css being applied to it

.documentation iframe { width: 100%; height: 100%; }

This css will work in quirks mode but, the hal browser uses an html5 doc type, so here it does not. The default height of an element is auto and you can't take a percentage from that

Example of what it looks like now :

screen shot 2015-01-01 at 18 22 25

mikekelly commented 9 years ago

legit, thanks :+1: