We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2781d8b commit 8a2848dCopy full SHA for 8a2848d
MJRefresh/Base/MJRefreshHeader.m
@@ -65,7 +65,7 @@ - (void)resetInset {
65
insetT = insetT > self.mj_h + _scrollViewOriginalInset.top ? self.mj_h + _scrollViewOriginalInset.top : insetT;
66
self.insetTDelta = _scrollViewOriginalInset.top - insetT;
67
// 避免 CollectionView 在使用根据 Autolayout 和 内容自动伸缩 Cell, 刷新时导致的 Layout 异常渲染问题
68
- if (self.scrollView.mj_insetT != insetT) {
+ if (fabs(self.scrollView.mj_insetT - insetT) > FLT_EPSILON) {
69
self.scrollView.mj_insetT = insetT;
70
}
71
0 commit comments