```@Composable fun BarcodeListItem( descriptio...
# compose
g
Copy code
@Composable
fun BarcodeListItem(
    description: String,
    modifier: Modifier = Modifier,
) {
    Row(
        modifier = modifier,
    ) { 
        Image(
            painter = painterResource(R.drawable.barcode),
            contentDescription = null,
            contentScale = ContentScale.Crop,
        )
        
        Text(
            text = description,
        )
    }
}
Is there a way, without using OnGloballyPositioned modifier, to tell the Row to always take the height of its Text child composable?
Answering my own question for future reference,
.height(IntrinsicSize.Max)
is the trick:
Copy code
@Composable
fun BarcodeListItem(
    description: String,
    modifier: Modifier = Modifier.height(IntrinsicSize.Max),
) {
    Row(
        modifier = modifier,
    ) { 
        Image(
            painter = painterResource(R.drawable.barcode),
            contentDescription = null,
            contentScale = ContentScale.Crop,
        )
        
        Text(
            text = description,
        )
    }
}