title: Elegantly auto-resize Galleria jQuery slideshow when window is resized
body: <p>I am using the Galleria jQuery slideshow plugin. I can get the slideshow to fill the full browser window by specifying the width and height with $(document).width() and $(document).height() and everything works as desired. Code below:</p>
  
  <pre><code>Galleria.loadTheme('galleria/themes/classic/galleria.classic.min.js');
  $("#gallery").galleria({
      width: $(document).width(),
      height: $(document).height()
  });
  </code></pre>
  
  <p>I also put in the following code to handle when the window is resized:</p>
  
  <pre><code>$(window).resize(function() {
      location.reload();
  });
  </code></pre>
  
  <p>That works but it does a full screen refresh and isn't as elegant as Galleria's implementation, <a href="http://galleria.io/themes/fullscreen/" rel="nofollow">http://galleria.io/themes/fullscreen/</a>. Is there a way to resize the slideshow without having to reload the entire page using the default skin?</p>