forked from 0x2620/pandora
update position on image viewer resize
This commit is contained in:
parent
df658c96fb
commit
30d05f52ff
1 changed files with 4 additions and 0 deletions
|
@ -90,6 +90,10 @@ pandora.ui.documentDialog = function(options) {
|
||||||
height: dialogHeight,
|
height: dialogHeight,
|
||||||
width: dialogWidth
|
width: dialogWidth
|
||||||
});
|
});
|
||||||
|
$content.getArea && pandora.UI.set(
|
||||||
|
'documents.' + item.id,
|
||||||
|
{position: $content.getArea().map(Math.round)}
|
||||||
|
);
|
||||||
},
|
},
|
||||||
pandora_document: function(data) {
|
pandora_document: function(data) {
|
||||||
if (data.value) {
|
if (data.value) {
|
||||||
|
|
Loading…
Reference in a new issue