Add comments and CSS style for field refactor

This commit is contained in:
Tim Mickel 2016-04-05 20:43:54 -04:00
parent 8c180f0c52
commit 2fc35e5797
3 changed files with 3 additions and 2 deletions

View file

@ -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);
};