fix sizing defect
This commit is contained in:
parent
a094326ffb
commit
ba16c18b95
@ -20,6 +20,12 @@ import Foundation
|
|||||||
public var bottomViewOutsideOfScrollArea: Bool = false
|
public var bottomViewOutsideOfScrollArea: Bool = false
|
||||||
public var topViewOutsideOfScrollArea: 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)
|
/// Updates the padding for flexible space (header or footer)
|
||||||
private func updateFlexibleSpace() {
|
private func updateFlexibleSpace() {
|
||||||
guard let collectionView = collectionView else { return }
|
guard let collectionView = collectionView else { return }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user