Use BORDER_RECT_DEFAULT_HEIGHT constant

This commit is contained in:
Rachel Fenichel
2019-07-23 13:38:28 -07:00
parent b5c75ff24d
commit 24866deae9
2 changed files with 10 additions and 2 deletions

View File

@@ -442,7 +442,8 @@ Blockly.FieldTextInput.prototype.getCorrectedSize = function() {
// the logic to figure out whether to rerender, just call getSize.
this.getSize();
// TODO (#2562): Remove getCorrectedSize.
return new goog.math.Size(this.size_.width + Blockly.BlockSvg.SEP_SPACE_X, 16);
return new goog.math.Size(this.size_.width + Blockly.BlockSvg.SEP_SPACE_X,
Blockly.Field.BORDER_RECT_DEFAULT_HEIGHT);
};
Blockly.Field.register('field_input', Blockly.FieldTextInput);