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.
This commit is contained in:
picklesrus
2017-01-03 14:36:31 -08:00
committed by GitHub
parent 91938c3fb8
commit eb64921da5

View File

@@ -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_();
}
}