From c452fa62981cac1f799b9a99239e96104d9cd42e Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 8 Feb 2014 16:34:15 +0000 Subject: [PATCH] fix #2070 (List doesn't resize on documents dialog resize) --- static/js/documentsDialog.js | 3 +++ static/js/documentsPanel.js | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/static/js/documentsDialog.js b/static/js/documentsDialog.js index 3fd70ecd..80cb73cb 100644 --- a/static/js/documentsDialog.js +++ b/static/js/documentsDialog.js @@ -34,6 +34,9 @@ pandora.ui.documentsDialog = function() { removeOnClose: true, title: Ox._('Manage Documents'), width: dialogWidth + }) + .bindEvent({ + resize: $content.updateSize }); function addDocuments() { diff --git a/static/js/documentsPanel.js b/static/js/documentsPanel.js index f0e00a45..d2d0b87c 100644 --- a/static/js/documentsPanel.js +++ b/static/js/documentsPanel.js @@ -883,6 +883,10 @@ pandora.ui.documentsPanel = function(options) { }).open(); } + that.updateSize = function() { + $list.size(); + }; + return that; };