diff options
author | Olivier Paroz <github@oparoz.com> | 2015-09-26 20:19:06 +0300 |
---|---|---|
committer | Olivier Paroz <github@oparoz.com> | 2015-09-26 20:19:06 +0300 |
commit | e6c6c47906f88956e89dd2dfa2525ec676020074 (patch) | |
tree | 47251bd19652e762c532ec22bfca2898a0ed2e5d | |
parent | d41a89d8730fb5c5d791cab88e5aef728f321e0f (diff) |
Don't resize the breadcrumb on a totally empty gallery
Fixes #371
[ci skip]
-rw-r--r-- | js/app.js | 6 | ||||
-rw-r--r-- | js/galleryview.js | 2 |
2 files changed, 5 insertions, 3 deletions
@@ -59,9 +59,11 @@ $(document).ready(function () { if (windowWidth !== $(window).width()) { if ($('#emptycontent').is(':hidden')) { Gallery.view.viewAlbum(Gallery.currentAlbum); + infoContentContainer.css('max-width', $(window).width()); + } + if(Gallery.currentAlbum) { + Gallery.view.breadcrumb.setMaxWidth($(window).width() - Gallery.buttonsWidth); } - Gallery.view.breadcrumb.setMaxWidth($(window).width() - Gallery.buttonsWidth); - infoContentContainer.css('max-width', $(window).width()); windowWidth = $(window).width(); } diff --git a/js/galleryview.js b/js/galleryview.js index 43f6c7ec..572125fc 100644 --- a/js/galleryview.js +++ b/js/galleryview.js @@ -79,7 +79,7 @@ /** * Sets up the controls and starts loading the gallery rows * - * @param {string} albumPath + * @param {string|null} albumPath */ viewAlbum: function (albumPath) { albumPath = albumPath || ''; |