Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/gallery.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Paroz <github@oparoz.com>2015-09-26 20:19:06 +0300
committerOlivier Paroz <github@oparoz.com>2015-09-26 20:19:06 +0300
commite6c6c47906f88956e89dd2dfa2525ec676020074 (patch)
tree47251bd19652e762c532ec22bfca2898a0ed2e5d
parentd41a89d8730fb5c5d791cab88e5aef728f321e0f (diff)
Don't resize the breadcrumb on a totally empty gallery
Fixes #371 [ci skip]
-rw-r--r--js/app.js6
-rw-r--r--js/galleryview.js2
2 files changed, 5 insertions, 3 deletions
diff --git a/js/app.js b/js/app.js
index a6d63ab7..35ac14a2 100644
--- a/js/app.js
+++ b/js/app.js
@@ -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 || '';