Skip to content

Commit

Permalink
1.2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhellsing committed Apr 5, 2012
1 parent bd8cb5e commit 7bf1449
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/galleria.js
Expand Up @@ -4116,7 +4116,9 @@ this.prependChild( 'info', 'myElement' );
self.$('container').toggleClass('iframe', !!data.iframe);

$( next.container ).css({
zIndex: 1
zIndex: 1,
left: 0,
top: 0
}).show();

self._controls.swap();
Expand Down Expand Up @@ -5425,9 +5427,11 @@ Galleria.Picture.prototype = {
$( this.image ).width( options.width ).height( options.height ).removeAttr( 'width' ).removeAttr( 'height' );
$( this.container ).width( options.width ).height( options.height) ;
options.complete.call(self, self);
if( this.image.contentWindow ) {
$( this.image.contentWindow ).trigger('resize');
}
try {
if( this.image.contentWindow ) {
$( this.image.contentWindow ).trigger('resize');
}
} catch(e) {}
return this.container;
}

Expand Down

0 comments on commit 7bf1449

Please sign in to comment.