mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: compute container height from bound text correctly (#6273)
* fix: compute container height from bound text correctly * fix specs * Add tests
This commit is contained in:
parent
9659254fd6
commit
0e95e2b386
3 changed files with 78 additions and 4 deletions
|
@ -233,7 +233,7 @@ describe("Test measureText", () => {
|
|||
type: "ellipse",
|
||||
...params,
|
||||
});
|
||||
expect(computeContainerHeightForBoundText(element, 150)).toEqual(212);
|
||||
expect(computeContainerHeightForBoundText(element, 150)).toEqual(226);
|
||||
});
|
||||
|
||||
it("should compute container height correctly for diamond", () => {
|
||||
|
@ -241,7 +241,7 @@ describe("Test measureText", () => {
|
|||
type: "diamond",
|
||||
...params,
|
||||
});
|
||||
expect(computeContainerHeightForBoundText(element, 150)).toEqual(300);
|
||||
expect(computeContainerHeightForBoundText(element, 150)).toEqual(320);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue