From fb360c019e5b76740c7278c59136c319cfd759f0 Mon Sep 17 00:00:00 2001 From: Austin Hyde Date: Tue, 28 Jan 2014 09:26:44 -0500 Subject: [PATCH] Fix line lengths from 6a83778 --- src/ol/dom/dom.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ol/dom/dom.js b/src/ol/dom/dom.js index 04d98bc097..66a6bb41df 100644 --- a/src/ol/dom/dom.js +++ b/src/ol/dom/dom.js @@ -256,8 +256,10 @@ ol.dom.transformElement2D = opt_translationElement.style.left = Math.round(dx) + 'px'; opt_translationElement.style.top = Math.round(dy) + 'px'; } else { - element.style.left = Math.round(goog.vec.Mat4.getElement(transform, 0, 3)) + 'px'; - element.style.top = Math.round(goog.vec.Mat4.getElement(transform, 1, 3)) + 'px'; + element.style.left = + Math.round(goog.vec.Mat4.getElement(transform, 0, 3)) + 'px'; + element.style.top = + Math.round(goog.vec.Mat4.getElement(transform, 1, 3)) + 'px'; // TODO: Add scaling here. This isn't quite as simple as multiplying // width/height, because that only changes the container size, not the