Why does setting icon size change text width/wrapp...
# compose-desktop
d
Why does setting icon size change text width/wrapping in a DropdownMenuItem?
Copy code
DropdownMenuItem(
                            onClick = {...}) {
                                Icon(
                                    painter = painterResource(item.iconPath),
                                    modifier = Modifier.padding(end = 4.dp),//.size(24.dp),
                                    contentDescription = null
                                )
                                Text(
                                    text = item.text
                                )
                            }
                        }
.size
commented out = left, wrapped. not commented out = right, not wrapped. This is on Compose
1.1.0-rc01
, but also happens on
1.0.1
.
a
https://issuetracker.google.com/issues/198206454 Should be fixed in the next alpha.
🙏 1