mirror of
https://github.com/google/blockly.git
synced 2026-01-08 01:20:12 +01:00
fix: style attribute for xml in ws factory (#7554)
This commit is contained in:
committed by
GitHub
parent
cc47c3a8af
commit
ca4fa7e4fb
@@ -45,7 +45,7 @@ WorkspaceFactoryGenerator.prototype.generateToolboxXml = function() {
|
|||||||
// Create DOM for XML.
|
// Create DOM for XML.
|
||||||
var xmlDom = Blockly.utils.xml.createElement('xml');
|
var xmlDom = Blockly.utils.xml.createElement('xml');
|
||||||
xmlDom.id = 'toolbox';
|
xmlDom.id = 'toolbox';
|
||||||
xmlDom.style.display = 'none';
|
xmlDom.setAttribute('style', 'display: none');
|
||||||
|
|
||||||
if (!this.model.hasElements()) {
|
if (!this.model.hasElements()) {
|
||||||
// Toolbox has no categories. Use XML directly from workspace.
|
// Toolbox has no categories. Use XML directly from workspace.
|
||||||
@@ -111,7 +111,7 @@ WorkspaceFactoryGenerator.prototype.generateWorkspaceXml = function() {
|
|||||||
// Generate XML and set attributes.
|
// Generate XML and set attributes.
|
||||||
var xmlDom = Blockly.Xml.workspaceToDom(this.hiddenWorkspace);
|
var xmlDom = Blockly.Xml.workspaceToDom(this.hiddenWorkspace);
|
||||||
xmlDom.id = 'workspaceBlocks';
|
xmlDom.id = 'workspaceBlocks';
|
||||||
xmlDom.style.display = 'none';
|
xmlDom.setAttribute('style', 'display: none');
|
||||||
return xmlDom;
|
return xmlDom;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user