mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: WYSIWYG editor padding is not normalized with zoom.value (#8481)
This commit is contained in:
parent
80f3b75d42
commit
60e3801691
1 changed files with 1 additions and 1 deletions
|
@ -247,7 +247,7 @@ export const textWysiwyg = ({
|
|||
|
||||
// adding left and right padding buffer, so that browser does not cut the glyphs (does not work in Safari)
|
||||
const padding = !isSafari
|
||||
? Math.ceil(updatedTextElement.fontSize / 2)
|
||||
? Math.ceil(updatedTextElement.fontSize / appState.zoom.value / 2)
|
||||
: 0;
|
||||
|
||||
// Make sure text editor height doesn't go beyond viewport
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue