mirror of
https://github.com/google/blockly.git
synced 2026-01-08 17:40:09 +01:00
Use BORDER_RECT_DEFAULT_HEIGHT constant
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user