mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
Fix line height of input
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user