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)'); }; /**