mirror of
https://github.com/google/blockly.git
synced 2026-01-07 09:00:11 +01:00
Count all fields when deciding whether or not a full text field should be used. (#3492)
This commit is contained in:
@@ -154,10 +154,8 @@ Blockly.FieldTextInput.prototype.initView = function() {
|
||||
|
||||
// Count the number of fields, excluding text fields
|
||||
for (var i = 0, input; (input = this.sourceBlock_.inputList[i]); i++) {
|
||||
for (var j = 0, field; (field = input.fieldRow[j]); j++) {
|
||||
if (!(field instanceof Blockly.FieldLabel)) {
|
||||
nFields ++;
|
||||
}
|
||||
for (var j = 0; (input.fieldRow[j]); j++) {
|
||||
nFields ++;
|
||||
}
|
||||
if (input.connection) {
|
||||
nConnections++;
|
||||
|
||||
Reference in New Issue
Block a user