You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if newAllDayHeader != flowLayout.allDayHeaderHeight {
199
+
// Check whether we need update the allDayHeaderHeight
200
+
if !isScrolling || !willEffectContentSize(difference: flowLayout.allDayHeaderHeight - newAllDayHeader){
201
+
flowLayout.allDayHeaderHeight = newAllDayHeader
202
+
}
203
+
}
198
204
}
199
205
200
206
/// Update collectionViewLayout with custom flowLayout. For some other values like gridThickness and contentsMargin, please inherit from JZWeekViewFlowLayout to change the default value
@@ -212,18 +218,32 @@ open class JZBaseWeekView: UIView {
212
218
/// - Parameters:
213
219
/// - reloadEvents: If provided new events, current events will be reloaded. Default value is nil.
/// Notice: A temporary solution to fix the scroll from bottom issue when isScrolling
231
+
/// The issue is because the decreased height value will cause the system to change the collectionView contentOffset, but the affected contentOffset will
232
+
/// greater than the contentSize height, and the view will show some abnormal updates, this value will be used with isScrolling to check whether the in scroling change will be applied
0 commit comments