Hi Kishan,
The ability to add a minimum display length is not currently supported.
There are two options for your problem:
1. You can pad the input text with white space using a validator on the field. See here and here. Not the most elegant but wouldn’t require you to change core blockly.
2. You can create a new field type that would have your minimum length for the field. It would have to override updateWidth() and can be added using Blockly.Field.register()
Blockly.FieldTextInput.prototype.getText_ = function() {
return this.getValue().padEnd(4)
}
Yes for me too, it could be great to have this feature to keep
aligned all TextFields in complex Blocks. For instance I have a "Table
Block" and it's impossible to keep cells aligned in their column (see
picture attached).