Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

1.2.7

  • Loading branch information...
commit 7bf144972cb2e6bc35b66cd07b383fbac0507119 1 parent bd8cb5e
@davidhellsing davidhellsing authored
Showing with 8 additions and 4 deletions.
  1. +8 −4 src/galleria.js
View
12 src/galleria.js
@@ -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();
@@ -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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.