This commit is contained in:
cgspine
2021-08-25 21:40:25 +08:00
parent db2a120977
commit 2c1d7d1de2
@@ -446,6 +446,9 @@ public class QMUIContinuousNestedScrollLayout extends CoordinatorLayout implemen
if(mBottomView == null){
return Math.max(0, ((View) mTopView).getHeight() - getHeight());
}
if(mTopView == null){
return 0;
}
int contentHeight = mBottomView.getContentHeight();
if (contentHeight != IQMUIContinuousNestedBottomView.HEIGHT_IS_ENOUGH_TO_SCROLL) {
return Math.max(0, ((View) mTopView).getHeight() + contentHeight - getHeight());