From 994fc2ce1f9e5d037885686ec6fec76d2ae31119 Mon Sep 17 00:00:00 2001 From: Rachel Fenichel Date: Tue, 9 Feb 2021 14:47:14 -0800 Subject: [PATCH] Fix missing requires in dropdown div and widget div --- core/dropdowndiv.js | 7 +++++-- core/widgetdiv.js | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/core/dropdowndiv.js b/core/dropdowndiv.js index 770af679f..d7d383cbc 100644 --- a/core/dropdowndiv.js +++ b/core/dropdowndiv.js @@ -17,10 +17,13 @@ goog.provide('Blockly.DropDownDiv'); goog.require('Blockly.utils.dom'); goog.require('Blockly.utils.math'); +goog.require('Blockly.utils.Rect'); goog.require('Blockly.utils.style'); -goog.requireType('Blockly.utils.Rect'); +goog.requireType('Blockly.BlockSvg'); +goog.requireType('Blockly.Field'); goog.requireType('Blockly.utils.Size'); +goog.requireType('Blockly.WorkspaceSvg'); /** @@ -148,7 +151,7 @@ Blockly.DropDownDiv.BoundsInfo; * }} */ Blockly.DropDownDiv.PositionMetrics; - + /** * Create and insert the DOM element for this div. * @package diff --git a/core/widgetdiv.js b/core/widgetdiv.js index 37631bd2b..bd2734f96 100644 --- a/core/widgetdiv.js +++ b/core/widgetdiv.js @@ -18,10 +18,12 @@ */ goog.provide('Blockly.WidgetDiv'); +goog.require('Blockly.utils.dom'); goog.require('Blockly.utils.style'); goog.requireType('Blockly.utils.Rect'); goog.requireType('Blockly.utils.Size'); +goog.requireType('Blockly.WorkspaceSvg'); /**