Answer the question
In order to leave comments, you need to log in
How to stretch an image to full screen in fotorama?
Greetings!
I'm trying to change the position of previews in fotorama 4 from horizontal to vertical. Looks like I found a solution
but when expanding to full screen mode, it is not possible to stretch the image to the entire height of the screen (there is an empty space under the image). Through height 100% or 100vh it was not possible to stretch.
Answer the question
In order to leave comments, you need to log in
$('.fotorama')
.on('fotorama:fullscreenenter fotorama:fullscreenexit', function (e, fotorama) {
if (e.type === 'fotorama:fullscreenenter') {
// settings for full screen
fotorama.setOptions({nav: false});
} else {
// Back to normal settings
fotorama.setOptions({nav: 'thumbs'});
}
}).fotorama();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question