From eb64921da591bf6e967a05fc55b0e2b5375d410f Mon Sep 17 00:00:00 2001 From: picklesrus Date: Tue, 3 Jan 2017 14:36:31 -0800 Subject: [PATCH] Fix #794 and make the workspace grid drag along with the workspace. (#801) There was some IE specific code that also applies to Edge so just updated a conditional to include Edge. --- core/workspace_svg.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/workspace_svg.js b/core/workspace_svg.js index 4c821d457..f6cc44088 100644 --- a/core/workspace_svg.js +++ b/core/workspace_svg.js @@ -1616,8 +1616,9 @@ Blockly.WorkspaceSvg.setTopLevelWorkspaceMetrics_ = function(xyRatio) { if (this.options.gridPattern) { this.options.gridPattern.setAttribute('x', x); this.options.gridPattern.setAttribute('y', y); - if (goog.userAgent.IE) { - // IE doesn't notice that the x/y offsets have changed. Force an update. + if (goog.userAgent.IE || goog.userAgent.EDGE) { + // IE/Edge doesn't notice that the x/y offsets have changed. + // Force an update. this.updateGridPattern_(); } }