round span values
This commit is contained in:
parent
8c64ccb50f
commit
ed2c73d732
1 changed files with 2 additions and 2 deletions
|
@ -171,7 +171,7 @@ pandora.ui.documentDialog = function(options) {
|
||||||
center: function(data) {
|
center: function(data) {
|
||||||
pandora.UI.set(
|
pandora.UI.set(
|
||||||
'documents.' + item.id,
|
'documents.' + item.id,
|
||||||
{position: $content.getArea()}
|
{position: $content.getArea().map(Math.round)}
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
key_escape: function() {
|
key_escape: function() {
|
||||||
|
@ -186,7 +186,7 @@ pandora.ui.documentDialog = function(options) {
|
||||||
zoom: function(data) {
|
zoom: function(data) {
|
||||||
pandora.UI.set(
|
pandora.UI.set(
|
||||||
'documents.' + item.id,
|
'documents.' + item.id,
|
||||||
{position: $content.getArea()}
|
{position: $content.getArea().map(Math.round)}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue