Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config height value used prior to CSS value #307

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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 ) );