From 3c1fc9690e478dc88acc161605a078a63b9276bf Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 26 Sep 2014 10:19:12 +0200 Subject: [PATCH] fix #2488 (Grid views scroll when they shouldn't) --- static/js/list.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/static/js/list.js b/static/js/list.js index b9f28d95..7cbffc22 100644 --- a/static/js/list.js +++ b/static/js/list.js @@ -110,9 +110,6 @@ pandora.ui.list = function() { columnresize: function(data) { pandora.UI.set('listColumnWidth.' + data.id, data.width); }, - resize: function(data) { // this is the resize event of the split panel - that.size(); - }, sort: function(data) { pandora.UI.set({ listSort: [{key: data.key, operator: data.operator}] @@ -385,6 +382,15 @@ pandora.ui.list = function() { that = pandora.ui.navigationView(view); } + if (['list', 'grid', 'clip'].indexOf(view) > -1) { + // react to the resize event of the split panel + that.bindEvent({ + resize: function(data) { + that.size(); + } + }); + } + if (['list', 'grid', 'clips', 'timelines', 'video'].indexOf(view) > -1) { pandora.enableDragAndDrop(that, true);