Your Cart

Galleria in fullscreen mode causes several vertical images to display horizontally

These forums are now closed to new replies / tickets.

Please open a support ticket from our new Support page.

Front Page Forums Questions Galleria in fullscreen mode causes several vertical images to display horizontally

  • gravatar
    Scott Rod
    September 27, 2014 at 3:37 pm

    When viewing Galleria with the default theme in fullscreen mode,
    some vertical images wrongfully display horizontally. This does not
    affect all vertical images, but quite a few.

    When not in fullscreen, all images display as intended.

    Is there a reason why this happens? A fix?

    Current JS:

    var flickr = new Galleria.Flickr();
      flickr.setOptions({
        max: 40,
        description: false
    });
    
    flickr.user('80936234@N05', function(data) {
      data.sort(function() {
        return (Math.round(Math.random())-0.5);
    });
    
    
    Galleria.run('#galleria', { 
      dataSource: data, 
      autoplay: 7000, 
      transition: 'slide',
      extend: function() {
        $('#fullscreen').click(this.proxy(function(e) {
          e.preventDefault();
            this.enterFullscreen(); 
          })
        );
       }
      });
    });
    
    Galleria.ready(function() {
      var gallery = this;
      this.addElement('exit').appendChild('container','exit');
      var btn = this.$('exit').hide().text('Close').click(function(e) {
            gallery.exitFullscreen();
      });
      this.bind('fullscreen_enter', function() {
        btn.show();
      });
      this.bind('fullscreen_exit', function() {
        btn.hide();
      });
    });
    


Galleria.io uses cookies to store information. You can read more about that in our Privacy Policy. I understand