update position on image viewer resize

This commit is contained in:
rolux 2015-02-05 08:18:40 +00:00
parent df658c96fb
commit 30d05f52ff

View file

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