fix #2488 (Grid views scroll when they shouldn't)

This commit is contained in:
rolux 2014-09-26 10:19:12 +02:00
parent 374296d630
commit 3c1fc9690e

View file

@ -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);