From 2da79a534993e0c3eeb1d47633c68772b654941c Mon Sep 17 00:00:00 2001 From: teach Date: Fri, 3 Apr 2020 16:58:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9onLayout=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../consecutivescroller/ConsecutiveScrollerLayout.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/consecutivescroller/src/main/java/com/donkingliang/consecutivescroller/ConsecutiveScrollerLayout.java b/consecutivescroller/src/main/java/com/donkingliang/consecutivescroller/ConsecutiveScrollerLayout.java index 8d7fe4f..3a83577 100644 --- a/consecutivescroller/src/main/java/com/donkingliang/consecutivescroller/ConsecutiveScrollerLayout.java +++ b/consecutivescroller/src/main/java/com/donkingliang/consecutivescroller/ConsecutiveScrollerLayout.java @@ -141,8 +141,8 @@ protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { @Override protected void onLayout(boolean changed, int l, int t, int r, int b) { mScrollRange = 0; - int childTop = t + getPaddingTop(); - int left = l + getPaddingLeft(); + int childTop = getPaddingTop(); + int left = getPaddingLeft(); List children = getNonGoneChildren(); int count = children.size();