Merge pull request #1281 from ONLYOFFICE/feature/bug-fixes
Feature/bug fixes
This commit is contained in:
commit
b5eb82d821
|
@ -33,7 +33,7 @@ class EditParagraphController extends Component {
|
||||||
newDistance = Math.min(maxValue, distance + step);
|
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);
|
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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -138,7 +138,8 @@ const EditLink = props => {
|
||||||
placeholder={_t.textRequired}
|
placeholder={_t.textRequired}
|
||||||
value={range}
|
value={range}
|
||||||
onChange={(event) => {setRange(event.target.value)}}
|
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}
|
<ListInput label={_t.textDisplay}
|
||||||
|
|
Loading…
Reference in a new issue