mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-01 16:51:10 -04:00
Add comments and CSS style for field refactor
This commit is contained in:
parent
8c180f0c52
commit
2fc35e5797
3 changed files with 3 additions and 2 deletions
core
|
@ -305,6 +305,7 @@ Blockly.Field.prototype.getSize = function() {
|
|||
*/
|
||||
Blockly.Field.prototype.getScaledBBox_ = function() {
|
||||
var size = this.getSize();
|
||||
// Create new object, so as to not return an uneditable SVGRect in IE.
|
||||
return new goog.math.Size(size.width * this.sourceBlock_.workspace.scale,
|
||||
size.height * this.sourceBlock_.workspace.scale);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue