aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/ca
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2020-01-19 21:54:26 -0800
committerAllan Wang <me@allanwang.ca>2020-01-19 21:54:26 -0800
commit4919fb3ac43ba54930d93f535a158787f1737456 (patch)
tree4f6e4815cc0f42fc193250eaa869948de3bacd74 /core/src/main/kotlin/ca
parenta94461333c058a5e9299d21b9b2f0daa5c647874 (diff)
downloadkau-4919fb3ac43ba54930d93f535a158787f1737456.tar.gz
kau-4919fb3ac43ba54930d93f535a158787f1737456.tar.bz2
kau-4919fb3ac43ba54930d93f535a158787f1737456.zip
Add comment to unbounded height calculation
Diffstat (limited to 'core/src/main/kotlin/ca')
-rw-r--r--core/src/main/kotlin/ca/allanwang/kau/utils/ViewUtils.kt3
1 files changed, 2 insertions, 1 deletions
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() {