Digital ACT-191 ONEAPP-9311 story: aligning text to center

This commit is contained in:
Vasavi Kanamarlapudi 2024-07-26 21:24:15 +05:30
parent 4e88ee936a
commit 90eb01cb24

View File

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