Fix line height of input

This commit is contained in:
akhmetsafin
2023-08-21 13:14:13 +03:00
parent 3eb73d2dd0
commit 10f2eda90f
@@ -37,8 +37,8 @@ extension DivInput: DivBlockModeling {
if let lineHeightInt = resolveLineHeight(expressionResolver) {
let lineHeight = CGFloat(lineHeightInt)
typo = typo.with(height: lineHeight)
if lineHeight > font.lineHeight {
typo = typo.with(baseline: (lineHeight - font.lineHeight) / 2)
if lineHeight > font.defaultLineHeight() {
typo = typo.with(baseline: (lineHeight - font.defaultLineHeight()) / 2)
}
}