From 62fe8656991b5c28e653e99071c8019acf3615b7 Mon Sep 17 00:00:00 2001 From: ShimaginAndrey Date: Wed, 21 Apr 2021 14:23:51 +0300 Subject: [PATCH] =?UTF-8?q?Fix=20Bug=20=E2=84=9647943?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mobile/src/controller/edit/EditText.jsx | 4 ++-- apps/presentationeditor/mobile/src/view/edit/EditText.jsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/presentationeditor/mobile/src/controller/edit/EditText.jsx b/apps/presentationeditor/mobile/src/controller/edit/EditText.jsx index 2b9ce3ae1..e7879a3d8 100644 --- a/apps/presentationeditor/mobile/src/controller/edit/EditText.jsx +++ b/apps/presentationeditor/mobile/src/controller/edit/EditText.jsx @@ -198,9 +198,9 @@ class EditTextController extends Component { let spacing = curSpacing; if (isDecrement) { - spacing = (spacing === null || spacing === undefined) ? 0 : Math.max(-100, --spacing); + spacing = (spacing === null || spacing === undefined || spacing === NaN) ? 0 : Math.max(-100, --spacing); } else { - spacing = (spacing === null || spacing === undefined) ? 0 : Math.min(100, ++spacing); + spacing = (spacing === null || spacing === undefined || spacing === NaN) ? 0 : Math.min(100, ++spacing); } const properties = new Asc.asc_CParagraphProperty(); diff --git a/apps/presentationeditor/mobile/src/view/edit/EditText.jsx b/apps/presentationeditor/mobile/src/view/edit/EditText.jsx index 5d8b636f8..bddc3defa 100644 --- a/apps/presentationeditor/mobile/src/view/edit/EditText.jsx +++ b/apps/presentationeditor/mobile/src/view/edit/EditText.jsx @@ -327,13 +327,13 @@ const PageAdditionalFormatting = props => { - {!isAndroid &&
{letterSpacing + ' ' + Common.Utils.Metric.getCurrentMetricName()}
} + {!isAndroid &&
{Number(letterSpacing).toFixed(2) + ' ' + Common.Utils.Metric.getCurrentMetricName()}
}
- {isAndroid && } + {isAndroid && }