Digital ACT-191 ONEAPP-9311 story: aligning text to center
This commit is contained in:
parent
4e88ee936a
commit
90eb01cb24
@ -143,6 +143,7 @@ open class InputStepper: EntryFieldBase {
|
|||||||
$0.textStyle = .boldBodyLarge
|
$0.textStyle = .boldBodyLarge
|
||||||
$0.numberOfLines = 1
|
$0.numberOfLines = 1
|
||||||
$0.lineBreakMode = .byTruncatingTail
|
$0.lineBreakMode = .byTruncatingTail
|
||||||
|
$0.textAlignment = .center
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
@ -234,7 +235,6 @@ open class InputStepper: EntryFieldBase {
|
|||||||
// Update stepper container border and corner radius.
|
// Update stepper container border and corner radius.
|
||||||
setControlWidth(controlWidth)
|
setControlWidth(controlWidth)
|
||||||
updateControlWidthPercentage()
|
updateControlWidthPercentage()
|
||||||
|
|
||||||
setNeedsLayout()
|
setNeedsLayout()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -379,6 +379,5 @@ open class InputStepper: EntryFieldBase {
|
|||||||
updateControlWidthPercentage()
|
updateControlWidthPercentage()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user