mirror of
https://github.com/google/blockly.git
synced 2026-01-07 09:00:11 +01:00
[zelos] Multi-line rendering (#3501)
* Add isMultiRow property and computation for padding with multirow blocks.
This commit is contained in:
@@ -138,6 +138,13 @@ Blockly.blockRendering.RenderInfo = function(renderer, block) {
|
||||
*/
|
||||
this.rows = [];
|
||||
|
||||
/**
|
||||
* The total number of input rows added onto the block.
|
||||
* @type {number}
|
||||
* @protected
|
||||
*/
|
||||
this.inputRowNum_ = 1;
|
||||
|
||||
/**
|
||||
* An array of measurable objects containing hidden icons.
|
||||
* @type {!Array.<!Blockly.blockRendering.Icon>}
|
||||
@@ -224,6 +231,7 @@ Blockly.blockRendering.RenderInfo.prototype.createRows_ = function() {
|
||||
// Finish this row and create a new one.
|
||||
this.rows.push(activeRow);
|
||||
activeRow = new Blockly.blockRendering.InputRow(this.constants_);
|
||||
this.inputRowNum_ ++;
|
||||
}
|
||||
|
||||
// All of the fields in an input go on the same row.
|
||||
|
||||
Reference in New Issue
Block a user