Question: Is there some way to have content top align and not center align when a parent's height is...
h
Question: Is there some way to have content top align and not center align when a parent's height is less than a child's
requiredHeight
? For example, this will vertically center align the child in the parent (as per the doc's on requiredHeight). Is there someway to just clip from the bottom?
Copy code
Parent(
   Modifier.height(200.dp)
) {
     Child(
        Modifier.requiredHeight(400.dp)
     )
}
jetpack compose 1
K 2
For anyone in this situation, setting the parent
wrapContentHeight(<http://Alignment.Top|Alignment.Top>, unbounded = true)
worked for me