fixed bug in app when swapping back and forth between sizes
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
bf4ab9ab1c
commit
0dae2d36cb
@ -162,15 +162,14 @@ extension Tabs {
|
||||
labelBottomConstraint?.constant = -otherSpace
|
||||
|
||||
//label properties
|
||||
label.textStyle = textStyle
|
||||
label.text = text
|
||||
label.surface = surface
|
||||
label.textStyle = textStyle
|
||||
label.textAlignment = textAlignment.value
|
||||
label.textColorConfiguration = textColorConfiguration.eraseToAnyColorable()
|
||||
setNeedsLayout()
|
||||
layoutIfNeeded()
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/// Used to update any Accessibility properties.
|
||||
open override func updateAccessibility() {
|
||||
|
||||
@ -111,7 +111,7 @@ open class Tabs: View {
|
||||
open var selectedIndex: Int = 0 { didSet { setNeedsUpdate() } }
|
||||
|
||||
/// Determines the size of the Tabs TextStyle
|
||||
open var size: Size = .medium { didSet { setNeedsUpdate() } }
|
||||
open var size: Size = .medium { didSet { updateTabItems() } }
|
||||
|
||||
/// When true, Tabs will be sticky to top of page, when orientation is vertical.
|
||||
open var sticky: Bool = false { didSet { setNeedsUpdate() } }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user