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.
1 parent 4f9fadc commit fd52eacCopy full SHA for fd52eac
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