From a43c426986073a937909da837b397c6cc5adb48d Mon Sep 17 00:00:00 2001 From: carlosperate Date: Fri, 21 Aug 2015 17:25:05 +0100 Subject: [PATCH] Remove additional height to the FieldImage size. --- core/field_image.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/field_image.js b/core/field_image.js index 26fab813b..5d132f6a1 100644 --- a/core/field_image.js +++ b/core/field_image.js @@ -46,7 +46,7 @@ Blockly.FieldImage = function(src, width, height, opt_alt) { // Ensure height and width are numbers. Strings are bad at math. this.height_ = Number(height); this.width_ = Number(width); - this.size_ = new goog.math.Size(this.height_ + 10, this.width_); + this.size_ = new goog.math.Size(this.height_, this.width_); this.text_ = opt_alt || ''; this.setValue(src); };