diff --git a/core/field_dropdown.js b/core/field_dropdown.js index 5614a9009..a8a632573 100644 --- a/core/field_dropdown.js +++ b/core/field_dropdown.js @@ -352,7 +352,7 @@ Blockly.FieldDropdown.prototype.render_ = function() { if (this.imageJson_) { // Image option is selected. - this.imageElement_ = Blockly.createSvgElement('image', + this.imageElement_ = Blockly.utils.createSvgElement('image', {'y': 5, 'height': this.imageJson_.height + 'px', 'width': this.imageJson_.width + 'px'}, this.fieldGroup_);