Skip to content

Commit

Permalink
If anything calls Blockly.svgResize while readonly is false you will …
Browse files Browse the repository at this point in the history
…never see the readonly workspace again unless you call Blockly.svgResize again. fixes roroettg#78
  • Loading branch information
markfinn committed Apr 8, 2022
1 parent 6892df7 commit 54564d6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ export class NgxBlocklyComponent implements OnInit, AfterViewInit, OnChanges, On
this._secondaryWorkspace = Blockly.inject(this.secondaryContainer.nativeElement, config);
}
Blockly.Xml.clearWorkspaceAndLoadFromXml(Blockly.Xml.textToDom(this.toXml()), this._secondaryWorkspace);
Blockly.svgResize(this._secondaryWorkspace);
} else {
if (this._secondaryWorkspace) {
this.secondaryContainer.nativeElement.classList.add('hidden');
Expand Down

0 comments on commit 54564d6

Please sign in to comment.