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-19 12:33:28 +0300
committerOlivier Paroz <github@oparoz.com>2015-09-19 12:33:28 +0300
commitfbb85c0cfc31ad3646fd3def2ff9b159f094e537 (patch)
treebd7f202f292cf6aaef780373be18e78c2f4eac70
parenteeaf7b6d8e4280092217a579120fd1ad4a8a2a2f (diff)
Limit the width of the info content dropdown
Fixes #360 [ci skip]
-rw-r--r--js/app.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/js/app.js b/js/app.js
index bfcb4520..bad8ccec 100644
--- a/js/app.js
+++ b/js/app.js
@@ -54,19 +54,20 @@ $(document).ready(function () {
var windowWidth = $(window).width();
var windowHeight = $(window).height();
$(window).resize(_.throttle(function () {
- // This section redraws the photowall
+ var infoContentElement = $('.album-info-content');
+ // This section redraws the photowall and limits the width of dropdowns
if (windowWidth !== $(window).width()) {
if ($('#emptycontent').is(':hidden')) {
Gallery.view.viewAlbum(Gallery.currentAlbum);
}
Gallery.view.breadcrumb.setMaxWidth($(window).width() - Gallery.buttonsWidth);
+ infoContentElement.css('max-width', $(window).width());
windowWidth = $(window).width();
}
// This makes sure dropdowns will not be hidden after a window resize
if (windowHeight !== $(window).height()) {
Gallery.resetContentHeight();
- var infoContentElement = $('.album-info-content');
infoContentElement.css('max-height',
$(window).height() - Gallery.browserToolbarHeight);