Skip to content

Commit e80831a

Browse files
committed
1 parent 9a00ab8 commit e80831a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

appinventor/blocklyeditor/src/blocklyeditor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ Blockly.BlocklyEditor['create'] = function(container, formName, readOnly, rtl) {
11371137
workspace.flyout_ = workspace.getFlyout();
11381138
workspace.addWarningIndicator();
11391139
workspace.addBackpack();
1140-
Blockly.browserEvents.bind(workspace.svgGroup_, 'focus', workspace, workspace.markFocused);
1140+
Blockly.browserEvents.bind(workspace.getSvgGroup(), 'focus', workspace, workspace.markFocused);
11411141
// Hide scrollbars by default (otherwise ghost rectangles intercept mouse events)
11421142
workspace.flyout_.scrollbar_ && workspace.flyout_.scrollbar_.setContainerVisible(false);
11431143
workspace.backpack_.flyout_.scrollbar_ && workspace.backpack_.flyout_.scrollbar_.setContainerVisible(false);

appinventor/blocklyeditor/src/workspace_svg.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ Blockly.WorkspaceSvg.prototype.addWarningIndicator = function() {
198198
}
199199
this.warningIndicator_ = new Blockly.WarningIndicator(this);
200200
var svgWarningIndicator = this.warningIndicator_.createDom();
201-
this.svgGroup_.appendChild(svgWarningIndicator);
201+
this.getSvgGroup().appendChild(svgWarningIndicator);
202202
this.warningIndicator_.init();
203203
}
204204
};
@@ -911,7 +911,7 @@ Blockly.WorkspaceSvg.prototype.requestRender = function(block) {
911911
this.pendingRender = null;
912912
}
913913
}.bind(this);
914-
if (this.svgGroup_.parentElement.parentElement.parentElement.style.display === 'none') {
914+
if (this.getSvgGroup().parentElement.parentElement.parentElement.style.display === 'none') {
915915
this.pendingRender = true;
916916
} else {
917917
this.pendingRender = setTimeout(this.pendingRenderFunc, 0);

0 commit comments

Comments
 (0)