mirror of
https://github.com/google/blockly.git
synced 2026-01-08 01:20:12 +01:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user