fix sizing defect

This commit is contained in:
Pfeil, Scott Robert 2020-04-22 21:42:55 -04:00
parent a094326ffb
commit ba16c18b95

View File

@ -20,6 +20,12 @@ import Foundation
public var bottomViewOutsideOfScrollArea: Bool = false
public var topViewOutsideOfScrollArea: Bool = false
open override func updateViewConstraints() {
// Update the spacing on constraint update
updateFlexibleSpace()
super.updateViewConstraints()
}
/// Updates the padding for flexible space (header or footer)
private func updateFlexibleSpace() {
guard let collectionView = collectionView else { return }