mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: add 1px width to the container to calculate more accurately (#6174)
* fix: add 1px width to the container to calculate accurately * fix tests
This commit is contained in:
parent
5ae39c9292
commit
3a141ca77a
5 changed files with 9 additions and 8 deletions
|
@ -1036,7 +1036,7 @@ describe("Test Linear Elements", () => {
|
|||
expect(getBoundTextElementPosition(container, textElement))
|
||||
.toMatchInlineSnapshot(`
|
||||
Object {
|
||||
"x": 387,
|
||||
"x": 386.5,
|
||||
"y": 70,
|
||||
}
|
||||
`);
|
||||
|
@ -1095,7 +1095,7 @@ describe("Test Linear Elements", () => {
|
|||
expect(getBoundTextElementPosition(container, textElement))
|
||||
.toMatchInlineSnapshot(`
|
||||
Object {
|
||||
"x": 190,
|
||||
"x": 189.5,
|
||||
"y": 20,
|
||||
}
|
||||
`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue