this working and it goes like this -
$('#fileTreeIframe').load( function() {
var $ifbody = $(this).contents().find( 'body' );
$ifbody.css( 'height','auto' );
$(this).height( $ifbody.height() );
});
...need more coffee.
On Jan 25, 7:36 am, dbzz <j...@briskey.net> wrote:
> see if this works. chances are that the iframe content hasn't loaded
> yet when onready runs, so bind the height change to the iframe load
> callback.
>
> var $ifbody = $('#fileTreeIframe').contents().find( 'body' );
> $ifbody.bind( 'load', function() {
> $('#fileTreeIframe').height( $ifbody.height() );
> });
No comments:
Post a Comment