From d4897061d78a3b55b9b9ab225b808ae6802f4d1e Mon Sep 17 00:00:00 2001 From: Monica Kozbial Date: Fri, 5 Mar 2021 15:47:00 -0800 Subject: [PATCH] Cleanup comment (#4680) --- core/interfaces/i_positionable.js | 2 +- core/trashcan.js | 2 +- core/zoom_controls.js | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/interfaces/i_positionable.js b/core/interfaces/i_positionable.js index 00be26398..7ca224f6f 100644 --- a/core/interfaces/i_positionable.js +++ b/core/interfaces/i_positionable.js @@ -34,6 +34,6 @@ Blockly.IPositionable.prototype.position; /** * Returns the bounding rectangle of the UI element in pixel units relative to * the Blockly injection div. - * @returns {!Blockly.utils.Rect} The plugin’s bounding box. + * @return {!Blockly.utils.Rect} The plugin’s bounding box. */ Blockly.IPositionable.prototype.getBoundingRectangle; diff --git a/core/trashcan.js b/core/trashcan.js index 9a0bf0a21..8d0c40938 100644 --- a/core/trashcan.js +++ b/core/trashcan.js @@ -491,7 +491,7 @@ Blockly.Trashcan.prototype.position = function(metrics, savedPositions) { /** * Returns the bounding rectangle of the UI element in pixel units relative to * the Blockly injection div. - * @returns {!Blockly.utils.Rect} The plugin’s bounding box. + * @return {!Blockly.utils.Rect} The plugin’s bounding box. */ Blockly.Trashcan.prototype.getBoundingRectangle = function() { var bottom = this.top_ + this.BODY_HEIGHT_ + this.LID_HEIGHT_; diff --git a/core/zoom_controls.js b/core/zoom_controls.js index 8d5e6ac3f..465a7f677 100644 --- a/core/zoom_controls.js +++ b/core/zoom_controls.js @@ -67,7 +67,7 @@ Blockly.ZoomControls = function(workspace) { this.onZoomOutWrapper_ = null; /** - * The vertical distance between the workspace bottom edge and the control. + * The starting vertical distance between the workspace edge and the control. * The value is initialized during `init`. * @type {?number} * @private @@ -202,7 +202,7 @@ Blockly.ZoomControls.prototype.dispose = function() { /** * Returns the bounding rectangle of the UI element in pixel units relative to * the Blockly injection div. - * @returns {!Blockly.utils.Rect} The plugin’s bounding box. + * @return {!Blockly.utils.Rect} The plugin’s bounding box. */ Blockly.ZoomControls.prototype.getBoundingRectangle = function() { var bottom = this.top_ + this.HEIGHT_; @@ -226,11 +226,11 @@ Blockly.ZoomControls.prototype.position = function(metrics, savedPositions) { } if (metrics.toolboxMetrics.position == Blockly.TOOLBOX_AT_LEFT || (this.workspace_.horizontalLayout && !this.workspace_.RTL)) { - // Toolbox starts in the left corner. + // Zoom controls start in the left corner. this.left_ = metrics.viewMetrics.width + metrics.absoluteMetrics.left - this.WIDTH_ - this.MARGIN_SIDE_ - Blockly.Scrollbar.scrollbarThickness; } else { - // Toolbox starts in the right corner. + // Zoom controls start in the right corner. this.left_ = this.MARGIN_SIDE_ + Blockly.Scrollbar.scrollbarThickness; }