updated tab to set with in vertical
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
7fa75eb519
commit
bf63fe9e61
@ -128,7 +128,7 @@ extension Tabs {
|
||||
label.textStyle = size.textStyle
|
||||
label.textColor = textColorConfiguration.getColor(self)
|
||||
labelWidthConstraint?.isActive = false
|
||||
if let width {
|
||||
if let width, orientation == .vertical {
|
||||
labelWidthConstraint = label.widthAnchor.constraint(equalToConstant: width)
|
||||
} else {
|
||||
labelWidthConstraint = label.widthAnchor.constraint(greaterThanOrEqualToConstant: 44.0)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user