Merge remote-tracking branch 'origin/master' into aakansha-refact

This commit is contained in:
Aakansha Doshi 2023-02-27 17:23:14 +05:30
commit 0a295e523b
3 changed files with 45 additions and 8 deletions

View file

@ -259,9 +259,9 @@ export const textWysiwyg = ({
: updatedTextElement.height / lines.length;
if (!container) {
maxWidth = (appState.width - 8 - viewportX) / appState.zoom.value;
}
// As firefox, Safari needs little higher dimensions on DOM
if (isFirefox || isSafari) {
textElementWidth = Math.min(textElementWidth, maxWidth);
} else if (isFirefox || isSafari) {
// As firefox, Safari needs little higher dimensions on DOM
textElementWidth += 0.5;
}
// Make sure text editor height doesn't go beyond viewport