Skip to content

Commit

Permalink
fix: dragging fails for collapsed blocks with Icons, which have been … (
Browse files Browse the repository at this point in the history
google#6081)

* fix: 6076 "dragging fails" improved

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

* fix: "dragging fails (bug google#6076)" moved fix-code after L625
  • Loading branch information
tweini authored and BeksOmega committed Apr 28, 2022
1 parent e21a8fc commit 4de439b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions core/serialization/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -611,8 +611,14 @@ const initBlock = function(block, rendered) {
// operation to decrease load time.
block.setConnectionTracking(false);

block.initSvg();
block.render(false);
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();
}
Expand Down

0 comments on commit 4de439b

Please sign in to comment.