mirror of
https://github.com/google/blockly.git
synced 2026-01-10 10:27:08 +01:00
fix: disabled render status after serialization (#7650)
* fix: disabled render status after serialization * chore: format * chore: better names * chore: format
This commit is contained in:
committed by
GitHub
parent
bf91422c98
commit
e6de8581dd
@@ -1623,6 +1623,11 @@ export class BlockSvg
|
||||
if (this.isCollapsed()) {
|
||||
this.updateCollapsed_();
|
||||
}
|
||||
|
||||
if (!this.isEnabled()) {
|
||||
this.updateDisabled();
|
||||
}
|
||||
|
||||
this.workspace.getRenderer().render(this);
|
||||
this.tightenChildrenEfficiently();
|
||||
|
||||
|
||||
@@ -733,7 +733,6 @@ function initBlock(block: Block, rendered: boolean) {
|
||||
|
||||
blockSvg.initSvg();
|
||||
blockSvg.queueRender();
|
||||
blockSvg.updateDisabled();
|
||||
|
||||
// fixes #6076 JSO deserialization doesn't
|
||||
// set .iconXY_ property so here it will be set
|
||||
|
||||
@@ -592,7 +592,6 @@ export function domToBlockInternal(
|
||||
topBlockSvg.setConnectionTracking(true);
|
||||
}
|
||||
}, 1);
|
||||
topBlockSvg.updateDisabled();
|
||||
// Allow the scrollbars to resize and move based on the new contents.
|
||||
// TODO(@picklesrus): #387. Remove when domToBlock avoids resizing.
|
||||
(workspace as WorkspaceSvg).resizeContents();
|
||||
|
||||
Reference in New Issue
Block a user