From ed2c73d7324282cd0851a61089ade25bcd621b8f Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 5 Feb 2015 07:41:25 +0000 Subject: [PATCH] round span values --- static/js/documentDialog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/documentDialog.js b/static/js/documentDialog.js index 94a364d13..85e3be49b 100644 --- a/static/js/documentDialog.js +++ b/static/js/documentDialog.js @@ -171,7 +171,7 @@ pandora.ui.documentDialog = function(options) { center: function(data) { pandora.UI.set( 'documents.' + item.id, - {position: $content.getArea()} + {position: $content.getArea().map(Math.round)} ); }, key_escape: function() { @@ -186,7 +186,7 @@ pandora.ui.documentDialog = function(options) { zoom: function(data) { pandora.UI.set( 'documents.' + item.id, - {position: $content.getArea()} + {position: $content.getArea().map(Math.round)} ); } })