Resolve field angle overlap render problem (#2418)

* Rebuild and update version numbers

* rebuild

* Update version number to 1.20190419.0

* Resolve field angle overlap render problem

* use block.getColourBorder() function
This commit is contained in:
Navid Zandi
2019-05-03 01:08:48 +04:30
committed by RoboErikG
parent 834fa64674
commit 44501f17cc

View File

@@ -207,9 +207,11 @@ Blockly.FieldAngle.prototype.showEditor_ = function() {
}, svg);
}
Blockly.DropDownDiv.setColour(this.sourceBlock_.getColour(),
this.sourceBlock_.getColour());
var border = this.sourceBlock_.getColourBorder();
border = border.colourBorder == null ? border.colourLight : border.colourBorder;
Blockly.DropDownDiv.setColour(this.sourceBlock_.getColour(), border);
Blockly.DropDownDiv.showPositionedByField(this);
// The angle picker is different from other fields in that it updates on
// mousemove even if it's not in the middle of a drag. In future we may