fix: keep binding for attached arrows after changing text (#3754)

Co-authored-by: David Luzar <luzar.david@gmail.com>
This commit is contained in:
connorhanafee
2021-06-21 08:31:49 -04:00
committed by GitHub
parent 5cd921549a
commit 969d3c694a
4 changed files with 118 additions and 6 deletions

View File

@ -139,6 +139,8 @@ export class API {
textAlign: rest.textAlign ?? appState.currentItemTextAlign,
verticalAlign: rest.verticalAlign ?? DEFAULT_VERTICAL_ALIGN,
});
element.width = width;
element.height = height;
break;
case "freedraw":
element = newFreeDrawElement({