Wrong behaviour for TextField inside Row ```@Com...
# compose-desktop
j
Wrong behaviour for TextField inside Row
Copy code
@Composable
fun marketView(market: Market) {

    @Composable
    fun marketParamRow(children: @Composable RowScope.() -> Unit) {
        Row(
                horizontalArrangement = Arrangement.SpaceBetween,
                modifier = Modifier
                        .fillMaxWidth()
                        .padding(horizontal = 4.dp),
                children = children)
    }

    Column(modifier = Modifier
            .fillMaxWidth()
            .padding(8.dp)) {
        marketParamRow { 
            val resultKindStage = remember { mutableStateOf(market.resultKind?.toString() ?: "") }

            Text("resultKind")
            TextField(
                    modifier = Modifier.width(50.dp),
                    maxLines = 1,
                    value = resultKindStage.value,
                    onValueChange = {
                        resultKindStage.value = it
                    },
            )
        }
        marketParamRow {
            Text("marketType")
            Text(market.marketType.toString())
        }
        marketParamRow {
            Text("period")
            Text(market.period.toString())
        }
        marketParamRow {
            Text("subPeriod")
            Text(market.subPeriod.toString())
        }
    }
}
Does somebody can help me?
I expect, TextField will be the end of row
m
It looks like your code has
modifier = Modifier.width(50.dp)
on that TextField, which it sounds like you maybe don't want?