Skip to content

Statement inputs with subsequent FieldTextInputs are indented #4008

Description

@mattbishop

Describe the bug

I'm using the Zelos Renderer. I have a block with multiple statement inputs in a row.

If I append a text input field in a dummy input right after a statement input, the text box appears indented to be after the notch in a the previous statement block. However, If I do the same thing with a plain label input field, that label appears left-aligned as I would expect.

To Reproduce

Here is the code I'm using to do this:

this.appendDummyInput().appendField(newFieldImage('icons/file-icon.png',32,32,'schema file','Your schema')).appendField(newBlockly.FieldTextInput('',null,{tooltip: 'Schema name'}),'schema_name')this.appendDummyInput().appendField(newFieldImage('icons/plus-icon.png',16,16,'Add Definition','Add new definition')).appendField('Definitions')this.appendDummyInput().appendField(newBlockly.FieldTextInput('',null,{tooltip: 'Definition name'}),'def_1').appendField(newFieldImage('icons/minus-icon.png',16,16,'Remove definition','Remove this definition'))this.appendStatementInput('$defs1').setCheck(schemaTypes)this.appendDummyInput().appendField(newBlockly.FieldTextInput('',null,{tooltip: 'Definition name'}),'def_2').appendField(newFieldImage('icons/minus-icon.png',16,16,'Remove definition','Remove this definition'))this.appendStatementInput('$defs2').setCheck(schemaTypes)this.appendDummyInput().appendField("a label").appendField(newFieldImage('iicons/minus-icon.png',16,16,'Remove definition','Remove this definition'))this.appendStatementInput('$defs3').setCheck(schemaTypes)this.setNextStatement(true,schemaTypes)this.setColour(195)

Expected behavior

The text field should be left-aligned like the label. I haven't tested this with other input controls.

Screenshots

indented-textInput

Desktop (please complete the following information):

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExternal contributions actively solicited

    Projects

    • Status
      Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions