From 2db7055827abb4362b5c18ffa4b06e9aff2147cf Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Tue, 29 Jan 2019 15:10:55 -0800 Subject: [PATCH] Removed render_ call, which was causing fields to calculate their size incorrectly. --- core/field.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/field.js b/core/field.js index a45ad938d..d6eacaf37 100644 --- a/core/field.js +++ b/core/field.js @@ -204,8 +204,6 @@ Blockly.Field.prototype.init = function() { this.mouseDownWrapper_ = Blockly.bindEventWithChecks_( this.fieldGroup_, 'mousedown', this, this.onMouseDown_); - // Force a render. - this.render_(); }; /** @@ -375,7 +373,7 @@ Blockly.Field.prototype.render_ = function() { }; /** - * Updates thw width of the field. This calls getCachedWidth which won't cache + * Updates the width of the field. This calls getCachedWidth which won't cache * the approximated width on IE/Edge when `getComputedTextLength` fails. Once * it eventually does succeed, the result will be cached. */