So in version 1 we used to override these with HTML in the actual code with the iframed page URL in an exhibit edit area. Is it possible to do this in version 2?
I've made it work, in a way, by making #iframed rules and also tampering with the iframed.php plugin.
$js = "function iframer()
{
// get width of #exhibit
var frame_x = $('#exhibit').width();
// get height of #index
var frame_y = $('#index').height();
// apply height and width
$('#iframed').css('width', frame_x);
$('#iframed').css('height', frame_y);
}
$(window).resize( function() { iframer(); } );";
I messed around with frame_x and frame_y to get it to work, is this 'safe'?