From 765f75f255afc72183c845aece067506417a77c4 Mon Sep 17 00:00:00 2001 From: Vince Date: Sun, 16 Jun 2013 09:38:31 +0200 Subject: [PATCH] Fix preview frames scrollers They were not properly updated when content was re-becoming smaller than the scroller. --- js/controller/PreviewFilmController.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/controller/PreviewFilmController.js b/js/controller/PreviewFilmController.js index 3f5a0ec3..a80f3db9 100644 --- a/js/controller/PreviewFilmController.js +++ b/js/controller/PreviewFilmController.js @@ -56,10 +56,10 @@ if (scrollBottom > treshold) { overflowBottom = true; } - var wrapper = $('#preview-list-wrapper'); - wrapper.toggleClass('top-overflow-visible', overflowTop); - wrapper.toggleClass('bottom-overflow-visible', overflowBottom); } + var wrapper = $('#preview-list-wrapper'); + wrapper.toggleClass('top-overflow-visible', overflowTop); + wrapper.toggleClass('bottom-overflow-visible', overflowBottom); }; ns.PreviewFilmController.prototype.createPreviews_ = function () {