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 Apr 21, 2022
1 parent 29b6b87 commit 5240301
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/serialization/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 5240301

Please sign in to comment.