Skip to content

Fix block-dropping to place chosen suggestion in the same scope as selected block #4

@fadilf

Description

@fadilf

When clicking on a suggested block, we would expect the suggestion to be dropped next to the initially selected block so as to continue to flow of logic. The majority of the time, this is going to be in the same scope as the initially selected block. I.e., your suggested block should land in the same sub-diagram. However, the default behavior for a dropped block is to land inside the top-level diagram.

Screenshot of two function blocks inside the bounds of a for loop where the second block is hovering

This is because the drop happens based on position alone inside Autocompleter.vi:

New VI Object block use for SubVIs New VI Object block use for Nodes New VI Object use inside utility

I think the default behavior should be corrected so that to drop the block in the same sub-diagram which can be achieved by modifying the use of New VI Object in the examples above (and inside Copy Block to VI.vi).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions