Use default resize function for microbit gesture dropdown (#2491)

This commit is contained in:
shakao
2019-10-22 11:18:56 -07:00
committed by GitHub
parent 1966dfbb5f
commit dc33f3342f

View File

@ -18,7 +18,7 @@ export class FieldGestures extends pxtblockly.FieldImages implements Blockly.Fie
this.addLabel_ = true;
this.setText = Blockly.FieldDropdown.prototype.setText;
this.updateWidth = (Blockly.Field as any).prototype.updateWidth;
this.updateSize_ = (Blockly.Field as any).prototype.updateSize_;
this.updateTextNode_ = Blockly.Field.prototype.updateTextNode_;
}