Skip to content

[Bug]: position coordinates are ignored on import #1933

@Diginix

Description

@Diginix

I'm sure that

  • This issue is still present in the current beta version of this adapter
  • There is no other (open) issue with the same topic (use the search!)
  • This issue is not described in the adapter documentation / FAQ (read the docs!)

Script type

Blockly

The problem

If you import the sample debug block in a already existing blockly it should be place at coordinate x="10" and y="10", but since adapter v9.x it is place randomly somewhere far below left, e.g. x="-762" y="5785". In very large blockly scripts with >1000 blocks you wont find the additional imported block. Sometimes I use the target coordinates where I need the new block in the script for the import, but due it will be ignored, it is useless.

<block xmlns="https://developers.google.com/blockly/xml" type="debug" id="9.!*b;;Y!bT|T`5;dxg;" x="10" y="10">
  <field name="Severity">info</field>
  <value name="TEXT">
    <shadow type="text" id="AEr@Ln7jt:KPS7wxv`yI">
      <field name="TEXT">test</field>
    </shadow>
  </value>
</block>

The random offset to the specified coordinates seems to depend on the already existing amount of blocks.

iobroker.current.log (in debug mode!)

No response

Version of nodejs

20.19.4

Version of ioBroker js-controller

7.0.7

Version of adapter

9.0.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions