Merge pull request #1281 from ONLYOFFICE/feature/bug-fixes

Feature/bug fixes
This commit is contained in:
maxkadushkin 2021-10-28 22:30:45 +03:00 committed by GitHub
commit b5eb82d821
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -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));
}
}

View file

@ -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' : ''}
/>
}
<ListInput label={_t.textDisplay}