Skip to content

Commit a1cf044

Browse files
committed
* fix tab child measure
1 parent bb85eb2 commit a1cf044

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TabLayout/src/main/java/com/angcyo/tablayout/DslTabLayout.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ open class DslTabLayout(
919919

920920
if (heightMode == MeasureSpec.AT_MOST) {
921921
//wrap_content 情况下, 重新测量所有子view
922-
childHeightSpec = exactlyMeasure(childMaxHeight)
922+
childHeightSpec = exactlyMeasure(max(childMaxHeight, suggestedMinimumHeight))
923923
visibleChildList.forEach { childView ->
924924
measureChild(childView)
925925
}

0 commit comments

Comments
 (0)