Skip to content

Commit

Permalink
修复UNSPECIFIED是size为0的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Brook007 committed Apr 9, 2019
1 parent b7577a3 commit 2719550
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.util.DisplayMetrics;
import android.util.Log;
import android.util.TypedValue;
import android.view.Display;
import android.view.View;
Expand Down Expand Up @@ -739,9 +738,6 @@ protected void measureChildren(int widthMeasureSpec, int heightMeasureSpec) {
layoutParams.height = (int) Math.ceil(layoutParams.bottom - layoutParams.top);
child.setLayoutParams(layoutParams);


Log.d("TAG", "Height:" + tempParentHeight);

if (Math.ceil(tempRight - tempLeft) != layoutParams.width || Math.ceil(tempBottom - tempTop) != layoutParams.height) {
child.measure(MeasureSpec.makeMeasureSpec(layoutParams.width, MeasureSpec.EXACTLY), MeasureSpec.makeMeasureSpec(layoutParams.height, MeasureSpec.EXACTLY));
}
Expand Down

0 comments on commit 2719550

Please sign in to comment.