mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: re-introduce wysiwyg width offset (#8014)
This commit is contained in:
parent
273ba803d9
commit
dc66261c19
2 changed files with 3 additions and 1 deletions
|
@ -226,6 +226,8 @@ export const textWysiwyg = ({
|
|||
if (!container) {
|
||||
maxWidth = (appState.width - 8 - viewportX) / appState.zoom.value;
|
||||
textElementWidth = Math.min(textElementWidth, maxWidth);
|
||||
} else {
|
||||
textElementWidth += 0.5;
|
||||
}
|
||||
|
||||
// Make sure text editor height doesn't go beyond viewport
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue