Commit a43c4269 authored by carlosperate's avatar carlosperate

Remove additional height to the FieldImage size.

parent 53f54248
......@@ -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);
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment