Skip to content

Commit

Permalink
fixed connector points misalignment when it is initiated from item menu
Browse files Browse the repository at this point in the history
  • Loading branch information
ishubin committed Dec 9, 2023
1 parent f9841a3 commit 2d1298a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ui/components/editor/states/StateConnecting.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ export default class StateConnecting extends State {
}

setItem(item) {
item.area.x = 0;
item.area.y = 0;
this.item = item;
StoreUtils.setCurrentConnector(this.store, item);
if (this.schemeContainer.findItemById(item.id)) {
Expand Down

0 comments on commit 2d1298a

Please sign in to comment.