https://kotlinlang.org logo
#compose-ios
Title
# compose-ios
u

लातों वाला भूत

11/01/2023, 12:21 PM
Has anyone faced OutlinedTextField label gets clipped in iOS When singleLine = false Does not happen in Android. When singleLine = true its not clipped in iOS as well This is the code for the summary column in image
Copy code
@Composable
fun SummaryEdit(
    summary: String,
    modifier: Modifier = Modifier,
    emptyLabel:String = "Tell us about yourself",
    onSummaryChange: (String) -> Unit
) {
    val maxLength = 3000
    Column(
        modifier = modifier,
        verticalArrangement = Arrangement.spacedBy(20.dp)
    ){
        Text(
            text = "Summary",
            fontSize = 18.sp,
            fontWeight = FontWeight.Bold
        )
        MedialTextField(
            value = summary,
            singleLine = false,
            maxLines = 6,
            onValueChange = { if(it.length <= maxLength) onSummaryChange(it) },
            label = if(summary.isEmpty()) emptyLabel else "${summary.length}/$maxLength",
            modifier = Modifier.height(150.dp)
        )
    }

}
a

Alexander Zhirkevich

11/01/2023, 12:31 PM
Fixed in 1.5.10
u

लातों वाला भूत

11/01/2023, 2:55 PM
@Vaibhav Jaiswal Are we using 1.5.10?
v

Vaibhav Jaiswal

11/01/2023, 4:19 PM
Yes
u

लातों वाला भूत

11/01/2023, 4:24 PM
@Alexander Zhirkevich This is still happening in 1.5.10
a

Alexander Zhirkevich

11/01/2023, 4:26 PM
Then please open an issue here
u

लातों वाला भूत

11/01/2023, 4:27 PM
Thanks
@Alexander Zhirkevich This was fixed in 1.5.10. We upgraded and not seeing this anymore. Thanks a lot for the help.
👍 1
3 Views