We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 013469d commit 14db8e3Copy full SHA for 14db8e3
1 file changed
Sources/LayoutSpecBuilders/Layout/VGridLayout.swift
@@ -112,6 +112,7 @@ public struct VGridLayout<Content> : _ASLayoutElementType where Content : _ASLay
112
case .fixed(let length):
113
114
spec.style.width = ASDimension(unit: .points, value: length)
115
+ spec.style.flexShrink = 0
116
117
case .flexible(let minimum, let maximum):
118
@@ -127,13 +128,12 @@ public struct VGridLayout<Content> : _ASLayoutElementType where Content : _ASLay
127
128
spec.style.maxWidth = ASDimension(unit: .points, value: minimum)
129
}
130
131
+ spec.style.width = ASDimension(unit: .fraction, value: 1)
132
+ spec.style.flexShrink = 1
133
134
135
136
- spec.style.width = ASDimension(unit: .fraction, value: 1)
- spec.style.flexShrink = 1
-
137
return spec
138
139
0 commit comments