mirror of
https://github.com/google/blockly.git
synced 2026-01-10 18:37:09 +01:00
Removed extra DropDownDiv calls. (#2532)
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user