fix: dragging fails for collapsed blocks with Icons, which have been … (#6081)

* fix: 6076 "dragging fails" improved

* fix: "dragging fails (bug #6076)" tested version

* fix: "dragging fails (bug google#6076)" moved fix-code after L625
This commit is contained in:
Tobias Weinert
2022-04-21 23:01:11 +02:00
committed by GitHub
parent 29b6b878dc
commit 5240301611

View File

@@ -623,6 +623,12 @@ const initBlock = function(block, rendered) {
blockSvg.initSvg();
blockSvg.render(false);
// fixes #6076 JSO deserialization doesn't
// set .iconXY_ property so here it will be set
const icons = block.getIcons();
for (let i = 0; i < icons.length; i++) {
icons[i].computeIconLocation();
}
} else {
block.initModel();
}