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:
Aakansha Doshi 2023-01-30 18:52:56 +05:30 committed by GitHub
parent 5ae39c9292
commit 3a141ca77a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 8 deletions

View file

@ -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,
}
`);