Testing with
https://blockly-demo.appspot.com/static/demos/code/index.html I cannot really replicate your problem. Are you modifying the wrapper that contains the blockly workspace? In older versions of Blockly I sometimes had issue getting blockly to refresh the workspace, but haven't experience that in a while. You could try in javascript to force a refresh with:
workspace.render()or more abruptly:
| workspace.setVisible(false); |
|
workspace.setVisible(true);Where workspace is your saved workspace instance, or if you are not saving it you could try the deprecated
Blockly.mainWorkspace .