From 288ae7d25cb0c0feada2b4eda92806551561d746 Mon Sep 17 00:00:00 2001 From: SergeyEzhin Date: Wed, 27 Oct 2021 23:31:04 +0400 Subject: [PATCH 1/2] [SSE mobile] Fix Bug 53158 --- apps/spreadsheeteditor/mobile/src/view/edit/EditLink.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/spreadsheeteditor/mobile/src/view/edit/EditLink.jsx b/apps/spreadsheeteditor/mobile/src/view/edit/EditLink.jsx index 517c3a835..9d09846b1 100644 --- a/apps/spreadsheeteditor/mobile/src/view/edit/EditLink.jsx +++ b/apps/spreadsheeteditor/mobile/src/view/edit/EditLink.jsx @@ -138,7 +138,8 @@ const EditLink = props => { placeholder={_t.textRequired} value={range} onChange={(event) => {setRange(event.target.value)}} - className={[isIos ? 'list-input-right' : '', curSheet === '' && 'disabled'].join(' ')} + disabled={curSheet === '' && 'disabled'} + className={isIos ? 'list-input-right' : ''} /> } Date: Thu, 28 Oct 2021 18:24:25 +0400 Subject: [PATCH 2/2] [DE mobile] Fix Bug 53370 --- .../mobile/src/controller/edit/EditParagraph.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/documenteditor/mobile/src/controller/edit/EditParagraph.jsx b/apps/documenteditor/mobile/src/controller/edit/EditParagraph.jsx index 0ecbe0bfa..ee2bae51f 100644 --- a/apps/documenteditor/mobile/src/controller/edit/EditParagraph.jsx +++ b/apps/documenteditor/mobile/src/controller/edit/EditParagraph.jsx @@ -33,7 +33,7 @@ class EditParagraphController extends Component { newDistance = Math.min(maxValue, distance + step); } - api.put_LineSpacingBeforeAfter(0, (newDistance < 0) ? -1 : Common.Utils.Metric.fnRecalcToMM(newDistance)); + api.put_LineSpacingBeforeAfter(0, (isDecrement && newDistance < 0) ? -1 : (!isDecrement && newDistance > -1 && newDistance < 0) ? 0 : Common.Utils.Metric.fnRecalcToMM(newDistance)); } } @@ -56,7 +56,7 @@ class EditParagraphController extends Component { newDistance = Math.min(maxValue, distance + step); } - api.put_LineSpacingBeforeAfter(1, (newDistance < 0) ? -1 : Common.Utils.Metric.fnRecalcToMM(newDistance)); + api.put_LineSpacingBeforeAfter(1, (isDecrement && newDistance < 0) ? -1 : (!isDecrement && newDistance > -1 && newDistance < 0) ? 0 : Common.Utils.Metric.fnRecalcToMM(newDistance)); } }