From e24ed24ee5ee0acd7147b26c7b207e70f2e55693 Mon Sep 17 00:00:00 2001 From: rlx Date: Sun, 10 Jan 2016 15:09:21 +0530 Subject: [PATCH] handle resize --- static/js/folders.js | 3 +++ static/js/list.js | 4 ---- static/js/rightPanel.js | 1 + 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/static/js/folders.js b/static/js/folders.js index bec05c1..98222a8 100644 --- a/static/js/folders.js +++ b/static/js/folders.js @@ -19,6 +19,9 @@ oml.ui.folders = function() { }, oml_showfolder: function() { oml.resizeListFolders(); + }, + oml_showinfo: function() { + oml.resizeListFolders(); } }); diff --git a/static/js/list.js b/static/js/list.js index 41943f7..7428bc1 100644 --- a/static/js/list.js +++ b/static/js/list.js @@ -108,10 +108,6 @@ oml.ui.list = function() { }); } }, - resize: function(data) { - // this is the resize event of the split panel - that.size(); - }, select: function(data) { oml.UI.set({listSelection: data.ids}); }, diff --git a/static/js/rightPanel.js b/static/js/rightPanel.js index 473ad56..a6bc1bd 100644 --- a/static/js/rightPanel.js +++ b/static/js/rightPanel.js @@ -23,6 +23,7 @@ oml.ui.rightPanel = function() { resize: function(data) { that.options({size: data.size}); oml.$ui.filtersOuterPanel.updateElement(); + oml.$ui.list.size(); oml.$ui.itemViewPanel.options({size: data.size}); }, oml_item: function(data) {