Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/galleria.js
Original file line number Diff line number Diff line change
Expand Up @@ -2695,10 +2695,10 @@ Galleria.prototype = {
self._userRatio = self._ratio = self._options.height;
}

// the gallery is ready, let's just wait for the css
// the gallery is ready, let's just wait for the css or use config by default
var num = { width: 0, height: 0 };
var testHeight = function() {
return self.$( 'stage' ).height();
return self._options.height || self.$( 'stage' ).height();
};

// check container and thumbnail height
Expand Down Expand Up @@ -6963,4 +6963,4 @@ $.fn.galleria = function( options ) {

// phew

}( jQuery ) );
}( jQuery ) );