We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4f14b56 + fd52eac commit b5dbfbfCopy full SHA for b5dbfbf
loadingstateview/src/main/java/com/dylanc/loadingstateview/LoadingStateView.kt
@@ -172,7 +172,7 @@ class LoadingStateView @JvmOverloads constructor(
172
if (parent is ConstraintLayout && viewType == ViewType.CONTENT) {
173
val params = view.layoutParams
174
if (view.measuredWidth == 0) params.width = MATCH_PARENT
175
- if (view.measuredHeight == 0) params.width = MATCH_PARENT
+ if (view.measuredHeight == 0) params.height = MATCH_PARENT
176
view.layoutParams = params
177
}
178
contentParent.addView(view)
0 commit comments