From 30d05f52ffb2d6b6b44d7325cf2937b13fec850c Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 5 Feb 2015 08:18:40 +0000 Subject: [PATCH] update position on image viewer resize --- static/js/documentDialog.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/js/documentDialog.js b/static/js/documentDialog.js index 86a34c72..116a528f 100644 --- a/static/js/documentDialog.js +++ b/static/js/documentDialog.js @@ -90,6 +90,10 @@ pandora.ui.documentDialog = function(options) { height: dialogHeight, width: dialogWidth }); + $content.getArea && pandora.UI.set( + 'documents.' + item.id, + {position: $content.getArea().map(Math.round)} + ); }, pandora_document: function(data) { if (data.value) {