Is there anyway to get the iframe to detect and open to the height of the browser window? I'm showing a pdf in an iframe, but don't want to force people with large monitors to have to look at it in a small iframe.

thanks for your help.

Comments

jglynn’s picture

Status: Active » Closed (fixed)

Sorry, realized this is a duplicate of "iFrame width and height in percent" issue.

Would be great functionality to have.

festerm’s picture

Hello, after try many thing I end solving this issue changing the rel atribute with a jQuery document.ready funcion, maybe you can adapt it:


var lightHeight = jQuery(window).height() - 3;
	
jQuery('a[rel="lightframe"]').attr('rel','lightframe[|height: ' + lightHeight + "px;]");