From 89ee9809d9ce98b694f937fc74eb6e30104540a8 Mon Sep 17 00:00:00 2001 From: Tim Dawborn Date: Wed, 1 Feb 2017 03:58:03 +1100 Subject: [PATCH] Bugfix for #892. I incorrectly converted one CSS transform setting to use the cross-browser setting function in 40a063763c74b3f712c3057565966c25d5cfdb10. (#895) --- core/workspace_drag_surface_svg.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/workspace_drag_surface_svg.js b/core/workspace_drag_surface_svg.js index ad18296bc..00128c47e 100644 --- a/core/workspace_drag_surface_svg.js +++ b/core/workspace_drag_surface_svg.js @@ -113,9 +113,9 @@ Blockly.workspaceDragSurfaceSvg.prototype.translateSurface = function(x, y) { x = x.toFixed(0); y = y.toFixed(0); - var transform = - 'transform: translate3d(' + x + 'px, ' + y + 'px, 0px); display: block;'; - Blockly.utils.setCssTransform(this.SVG_, transform); + this.SVG_.style.display = 'block'; + Blockly.utils.setCssTransform(this.SVG_, + 'translate3d(' + x + 'px, ' + y + 'px, 0px)'); }; /**