mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-28 22:10:31 -04:00
Merge pull request #163 from carlosperate/FieldImage
Remove additional height to the FieldImage size.
This commit is contained in:
commit
73ad694be4
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue