fix(editor): increase autoresize handle threshold until it hides (#11773)

This commit is contained in:
David Luzar
2026-07-27 23:04:03 +02:00
committed by GitHub
parent b2e81e38a6
commit 7c0b329576
+3 -2
View File
@@ -25,15 +25,16 @@ export const getTextAutoResizeHandle = (
zoomValue: number,
formFactor: EditorInterface["formFactor"],
) => {
const padding = getTextBoxPadding(zoomValue);
if (
formFactor !== "desktop" ||
TEXT_AUTO_RESIZE_HANDLE_LENGTH >
textElement.height * zoomValue * MAX_HANDLE_HEIGHT_RATIO
(textElement.height + padding * 2) * zoomValue * MAX_HANDLE_HEIGHT_RATIO
) {
return null;
}
const padding = getTextBoxPadding(zoomValue);
const gap = TEXT_AUTO_RESIZE_HANDLE_GAP / zoomValue;
const length = TEXT_AUTO_RESIZE_HANDLE_LENGTH / zoomValue;
const center = pointFrom(