From 4919fb3ac43ba54930d93f535a158787f1737456 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sun, 19 Jan 2020 21:54:26 -0800 Subject: Add comment to unbounded height calculation --- core/src/main/kotlin/ca/allanwang/kau/utils/ViewUtils.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/src/main') diff --git a/core/src/main/kotlin/ca/allanwang/kau/utils/ViewUtils.kt b/core/src/main/kotlin/ca/allanwang/kau/utils/ViewUtils.kt index 556c01c..9ee02cb 100644 --- a/core/src/main/kotlin/ca/allanwang/kau/utils/ViewUtils.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/utils/ViewUtils.kt @@ -89,7 +89,8 @@ inline val View.isGone: Boolean get() = visibility == View.GONE /** - * Measure the height of a view if it had match_parent for width and no height restrictions + * Measure the height of a view if it had match_parent for width and no height restrictions. + * Note that the view should be visible for this to work. */ inline val View.unboundedHeight: Int get() { -- cgit v1.2.3