mirror of
https://github.com/google/blockly.git
synced 2026-01-11 02:47:09 +01:00
createSvgElement is now in utils. fix two calls.
This commit is contained in:
@@ -125,7 +125,7 @@ Blockly.FlyoutButton.prototype.createDom = function() {
|
||||
cssClass += ' ' + this.cssClass_;
|
||||
}
|
||||
|
||||
this.svgGroup_ = Blockly.createSvgElement('g', {'class': cssClass},
|
||||
this.svgGroup_ = Blockly.utils.createSvgElement('g', {'class': cssClass},
|
||||
this.workspace_.getCanvas());
|
||||
|
||||
if (!this.isLabel_) {
|
||||
@@ -142,7 +142,7 @@ Blockly.FlyoutButton.prototype.createDom = function() {
|
||||
'rx': 4, 'ry': 4},
|
||||
this.svgGroup_);
|
||||
|
||||
var svgText = Blockly.createSvgElement('text',
|
||||
var svgText = Blockly.utils.createSvgElement('text',
|
||||
{'class': this.isLabel_ ? 'blocklyFlyoutLabelText' : 'blocklyText',
|
||||
'x': 0, 'y': 0, 'text-anchor': 'middle'},
|
||||
this.svgGroup_);
|
||||
|
||||
Reference in New Issue
Block a user