-
Evan W. Patton authored
Blocks workspace upgraders sometimes operate on the workspace in XML form rather than workspace form. When we did the Blockly update in May 2017, we moved updating the positions of blocks to occur immediately before the first render of the workspace rather than at workspace load time. This results in all blocks being at 0, 0 if the project relied on a component where the upgrader used XML because the blocks do not get positioned until after the upgrade has run. This code wraps the blockToDOMWithXY function to update the position of the block during serialization to XML if rendering is turned off, i.e. we are loading the workspace. Fixes #920 Change-Id: Ie19cbe4207e6c36979c2adb767748bb54def4551
853908e0