mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
cleanup getMaxContainerHeight and getMaxContainerWidth and add specs
This commit is contained in:
parent
7722de4ef2
commit
eacee9a158
4 changed files with 87 additions and 52 deletions
|
@ -204,7 +204,10 @@ export const textWysiwyg = ({
|
|||
}
|
||||
|
||||
maxWidth = getMaxContainerWidth(container);
|
||||
maxHeight = getMaxContainerHeight(container);
|
||||
maxHeight = getMaxContainerHeight(
|
||||
container,
|
||||
updatedTextElement as ExcalidrawTextElementWithContainer,
|
||||
);
|
||||
|
||||
// autogrow container height if text exceeds
|
||||
if (!isArrowElement(container) && textElementHeight > maxHeight) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue