Skip to content

Commit 5d1d35f

Browse files
authored
修复MJRefreshAutoFooter初始化时没有添加底部忽略间距的问题 (#1596)
1 parent e8a5c77 commit 5d1d35f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MJRefresh/Base/MJRefreshAutoFooter.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ - (void)willMoveToSuperview:(UIView *)newSuperview
3131
}
3232

3333
// 设置位置
34-
self.mj_y = _scrollView.mj_contentH;
34+
self.mj_y = _scrollView.mj_contentH + self.ignoredScrollViewContentInsetBottom;
3535
} else { // 被移除了
3636
if (self.hidden == NO) {
3737
self.scrollView.mj_insetB -= self.mj_h;
@@ -205,7 +205,7 @@ - (void)setHidden:(BOOL)hidden
205205
self.scrollView.mj_insetB += self.mj_h;
206206

207207
// 设置位置
208-
self.mj_y = _scrollView.mj_contentH;
208+
self.mj_y = _scrollView.mj_contentH + self.ignoredScrollViewContentInsetBottom;
209209
}
210210
}
211211

0 commit comments

Comments
 (0)