diff --git a/static/js/documentsDialog.js b/static/js/documentsDialog.js index 3fd70ecdb..80cb73cbf 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 f0e00a45e..d2d0b87c9 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; };