Removed extra DropDownDiv calls. (#2532)

This commit is contained in:
Beka Westberg
2019-06-03 11:02:05 -07:00
committed by RoboErikG
parent 02de44c06f
commit 54eb726063
3 changed files with 0 additions and 10 deletions

View File

@@ -172,9 +172,6 @@ Blockly.FieldAngle.prototype.showEditor_ = function() {
// Mobile browsers have issues with in-line textareas (focus & keyboards).
Blockly.FieldAngle.superClass_.showEditor_.call(this, noFocus);
// If there is an existing drop-down someone else owns, hide it immediately and clear it.
Blockly.DropDownDiv.hideWithoutAnimation();
Blockly.DropDownDiv.clearContent();
var div = Blockly.DropDownDiv.getContentDiv();
// Build the SVG DOM.

View File

@@ -285,10 +285,6 @@ Blockly.FieldColour.prototype.setColumns = function(columns) {
* @private
*/
Blockly.FieldColour.prototype.showEditor_ = function() {
Blockly.DropDownDiv.hideWithoutAnimation();
Blockly.DropDownDiv.clearContent();
var picker = this.createWidget_();
Blockly.DropDownDiv.getContentDiv().appendChild(picker);
Blockly.DropDownDiv.setColour(

View File

@@ -198,9 +198,6 @@ Blockly.FieldDate.prototype.updateEditor_ = function() {
* @private
*/
Blockly.FieldDate.prototype.showEditor_ = function() {
Blockly.DropDownDiv.hideWithoutAnimation();
Blockly.DropDownDiv.clearContent();
this.picker_ = this.createWidget_();
this.picker_.render(Blockly.DropDownDiv.getContentDiv());
Blockly.utils.addClass(this.picker_.getElement(), 'blocklyDatePicker');