mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-17 06:21:16 +02:00
lint
This commit is contained in:
@@ -273,9 +273,6 @@ export const textWysiwyg = ({
|
|||||||
if (!container) {
|
if (!container) {
|
||||||
maxWidth = (appState.width - 8 - viewportX) / appState.zoom.value;
|
maxWidth = (appState.width - 8 - viewportX) / appState.zoom.value;
|
||||||
textElementWidth = Math.min(textElementWidth, maxWidth);
|
textElementWidth = Math.min(textElementWidth, maxWidth);
|
||||||
} else if (isFirefox || isSafari) {
|
|
||||||
// As firefox, Safari needs little higher dimensions on DOM
|
|
||||||
textElementWidth += 0.5;
|
|
||||||
}
|
}
|
||||||
const magicOffset = excalidrawContainer
|
const magicOffset = excalidrawContainer
|
||||||
? parseFloat(getComputedStyle(excalidrawContainer).fontSize)
|
? parseFloat(getComputedStyle(excalidrawContainer).fontSize)
|
||||||
|
Reference in New Issue
Block a user