https://kotlinlang.org logo
#compose
Title
# compose
t

Tash

06/08/2022, 4:58 AM
On 1.2.0-alpha08, noticing that the `OutlinedTextField`’s label is offset to the right. bug or expected? 🧵
Copy code
var value by remember { mutableStateOf(TextFieldValue("")) }

OutlinedTextField(
    modifier = Modifier.fillMaxWidth(0.8f),
    value = value,
    onValueChange = { value = it }, label = {
        Box(
            modifier = Modifier
                .fillMaxWidth()
                .height(10.dp)
                .background(Color.Yellow)
        ) {}
    }
)
produces the following
seems like its bleeding out of the bounds of the outline
z

Zach Klippenstein (he/him) [MOD]

06/08/2022, 2:29 PM
I would guess that’s a bug. Might as well file
a

allan.conda

06/08/2022, 2:40 PM
or try updating compose to beta? Might have been fixed already
z

Zach Klippenstein (he/him) [MOD]

06/08/2022, 2:45 PM
Oh yea, definitely try that first
👍🏼 1
t

Tash

06/08/2022, 6:10 PM
will try beta or file