Fixed lint error.

This commit is contained in:
Beka Westberg
2019-08-08 16:40:45 -07:00
parent 16c59d2ffc
commit 84937a0ff6

View File

@@ -525,8 +525,8 @@ Blockly.FieldDropdown.prototype.renderSelectedText_ = function() {
this.textElement_.setAttribute('x', Blockly.Field.DEFAULT_TEXT_OFFSET);
// Height and width include the border rect.
this.size_.height = Blockly.Field.BORDER_RECT_DEFAULT_HEIGHT;
this.size_.width = Blockly.utils.dom.getTextWidth(this.textElement_)
+ Blockly.Field.X_PADDING;
this.size_.width = Blockly.utils.dom.getTextWidth(this.textElement_) +
Blockly.Field.X_PADDING;
};
/**