Cleanup comment (#4680)

This commit is contained in:
Monica Kozbial
2021-03-05 15:47:00 -08:00
committed by GitHub
parent f837f1e44e
commit d4897061d7
3 changed files with 6 additions and 6 deletions

View File

@@ -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 plugins bounding box.
* @return {!Blockly.utils.Rect} The plugins bounding box.
*/
Blockly.IPositionable.prototype.getBoundingRectangle;

View File

@@ -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 plugins bounding box.
* @return {!Blockly.utils.Rect} The plugins bounding box.
*/
Blockly.Trashcan.prototype.getBoundingRectangle = function() {
var bottom = this.top_ + this.BODY_HEIGHT_ + this.LID_HEIGHT_;

View File

@@ -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 plugins bounding box.
* @return {!Blockly.utils.Rect} The plugins 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;
}