Cleanup in core/renderers/zelos/measurables/inputs.js

This commit is contained in:
kozbial
2021-08-19 09:41:21 -07:00
committed by Monica Kozbial
parent 810e1e19a5
commit 5dd4e1ed50

View File

@@ -24,10 +24,9 @@ const object = goog.require('Blockly.utils.object');
/**
* An object containing information about the space a statement input takes up
* during rendering
* @param {!ConstantProvider} constants The rendering
* constants provider.
* @param {!Input} input The statement input to measure and store
* information for.
* @param {!ConstantProvider} constants The rendering constants provider.
* @param {!Input} input The statement input to measure and store information
* for.
* @package
* @constructor
* @extends {BaseStatementInput}
@@ -38,8 +37,9 @@ const StatementInput = function(constants, input) {
if (this.connectedBlock) {
// Find the bottom-most connected block in the stack.
let block = this.connectedBlock;
while (block.getNextBlock()) {
block = block.getNextBlock();
let nextBlock;
while ((nextBlock = block.getNextBlock())) {
block = nextBlock;
}
if (!block.nextConnection) {
this.height = this.connectedBlockHeight;