change offset to 8pixels

This commit is contained in:
Aakansha Doshi
2023-03-30 16:31:11 +05:30
parent 79be25fbc0
commit 895f35ae18
2 changed files with 4 additions and 4 deletions

View File

@@ -280,7 +280,7 @@ export const textWysiwyg = ({
);
const offset =
(updatedTextElement.height - baseline - 10) * appState.zoom.value;
(updatedTextElement.height - baseline - 8) * appState.zoom.value;
const top = viewportY + offset;
// Make sure text editor height doesn't go beyond viewport