fix alignment

This commit is contained in:
Aakansha Doshi 2023-05-17 14:09:25 +05:30
parent 9e3032059d
commit 81bee8acb8

View file

@ -1020,10 +1020,10 @@ export const bindTextToContainer = (
const textElement: ExcalidrawTextElement = newTextElement({
x: 0,
y: 0,
...textProps,
containerId: container.id,
textAlign: TEXT_ALIGN.CENTER,
verticalAlign: VERTICAL_ALIGN.MIDDLE,
...textProps,
containerId: container.id,
});
mutateElement(container, {