diff options
author | Olivier Paroz <github@oparoz.com> | 2015-09-19 12:33:28 +0300 |
---|---|---|
committer | Olivier Paroz <github@oparoz.com> | 2015-09-19 12:33:28 +0300 |
commit | fbb85c0cfc31ad3646fd3def2ff9b159f094e537 (patch) | |
tree | bd7f202f292cf6aaef780373be18e78c2f4eac70 | |
parent | eeaf7b6d8e4280092217a579120fd1ad4a8a2a2f (diff) |
Limit the width of the info content dropdown
Fixes #360
[ci skip]
-rw-r--r-- | js/app.js | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); |