mirror of
https://github.com/google/blockly.git
synced 2026-01-15 21:07:14 +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:
committed by
Beka Westberg
parent
e21a8fcd0c
commit
4de439b64e
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user