I captured what is happening with the `OutlinedTex...
# compose-desktop
y
I captured what is happening with the
OutlinedTextField
when it gets resized My original code (which I was having issue with):
Copy code
OutlinedTextField(searchFilter.value,
                    onValueChange = { searchFilter.value = it },
                    trailingIcon = {
                        Icon(
                            Icons.Outlined.Search,
                            contentDescription = "filter",
                        )
                    },
                    modifier = Modifier.height(40.dp)
                )
It this a bug or the intended behavior? Is there anything I can do to change the behavior (I would like to use
40.dp
)?
k
Looks like the built-in (default?) margins need to be tweaked as well if you want a skinny text field
j
cc @Clara Bayarri @Siyamed Would this go to the material team or the text team or who would be the best POC to own this?
y
what is interesting is that the trailing icon gets properly moved but not the text. And as I stated previously, 40.dp is the "standard" dense representation of the field (per Material design recommendations) so I am not trying to do something extreme.
j
Please do file a bug in upstream (https://issuetracker.google.com/issues?q=componentid:612128) including the images and minimal repro you've made, and we'll try to get it routed to have the right person take a look.
y
ok I didn't know if it was a bug or intended. so I will file a bug
@jim I have submitted the issue https://issuetracker.google.com/issues/183136600 with full source code to reproduce