mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
fix alignment
This commit is contained in:
parent
9e3032059d
commit
81bee8acb8
1 changed files with 2 additions and 2 deletions
|
@ -1020,10 +1020,10 @@ export const bindTextToContainer = (
|
||||||
const textElement: ExcalidrawTextElement = newTextElement({
|
const textElement: ExcalidrawTextElement = newTextElement({
|
||||||
x: 0,
|
x: 0,
|
||||||
y: 0,
|
y: 0,
|
||||||
...textProps,
|
|
||||||
containerId: container.id,
|
|
||||||
textAlign: TEXT_ALIGN.CENTER,
|
textAlign: TEXT_ALIGN.CENTER,
|
||||||
verticalAlign: VERTICAL_ALIGN.MIDDLE,
|
verticalAlign: VERTICAL_ALIGN.MIDDLE,
|
||||||
|
...textProps,
|
||||||
|
containerId: container.id,
|
||||||
});
|
});
|
||||||
|
|
||||||
mutateElement(container, {
|
mutateElement(container, {
|
||||||
|
|
Loading…
Add table
Reference in a new issue