Skip to content

Commit c272700

Browse files
committed
fix #14: fixed dispatch of the layoutSubview to the row's contentView to update its height (useful when using autolayout and contentsize with UITableView)
1 parent 4263d85 commit c272700

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Sources/ScrollStackController/ScrollStackRow.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,13 @@ open class ScrollStackRow: UIView, UIGestureRecognizerDelegate {
247247
separatorView.isHidden = isSeparatorHidden
248248
}
249249

250+
open override func layoutSubviews() {
251+
super.layoutSubviews()
252+
253+
// called the event to update the height of the row.
254+
askForCutomizedSizeOfContentView(animated: false)
255+
}
256+
250257
private func applyParentStackAttributes() {
251258
guard let stackView = self.stackView else {
252259
return

0 commit comments

Comments
 (0)