Updated Comments.

This commit is contained in:
Beka Westberg
2018-12-19 18:10:57 -08:00
parent 9ee7319ac5
commit 96e754cf36
2 changed files with 9 additions and 6 deletions

View File

@@ -265,10 +265,10 @@ Blockly.Trashcan.prototype.createDom = function() {
/**
* Initialize the trash can.
* @param {number} verticalSpacing Vertical distance workspace edge to the same
* edge of the trashcan.
* @param {number} verticalSpacing Vertical distance from workspace edge to the
* same edge of the trashcan.
* @return {number} Vertical distance from workspace edge to the opposite
* edge of the trashcan.
* edge of the trashcan.
*/
Blockly.Trashcan.prototype.init = function(verticalSpacing) {
if (this.workspace_.options.maxTrashcanContents > 0) {
@@ -297,7 +297,10 @@ Blockly.Trashcan.prototype.dispose = function() {
};
/**
* Move the trash can to the bottom-right corner.
* Position the trashcan.
* It is positioned in the upper corner when the toolbox is on bottom, and the
* bottom corner for all other toolbox positions. It is on the right in LTR,
* and left in RTL.
*/
Blockly.Trashcan.prototype.position = function() {
// Not yet initialized.

View File

@@ -109,9 +109,9 @@ Blockly.ZoomControls.prototype.createDom = function() {
/**
* Initialize the zoom controls.
* @param {number} verticalSpacing Vertical distances from workspace edge to the
* same edge of the controls.
* same edge of the controls.
* @return {number} Vertical distance from workspace edge to the opposite
* edge of the controls.
* edge of the controls.
*/
Blockly.ZoomControls.prototype.init = function(verticalSpacing) {
this.verticalSpacing_ = this.MARGIN_BOTTOM_ + verticalSpacing;