Status Update
Comments
mu...@google.com <mu...@google.com> #2
Thanks, can you please add information about the Android version/device as well?
jc...@gmail.com <jc...@gmail.com> #3
I can reproduce it both on Emulator Pixel 5 API 31 arm64 version, and on Meizu X8 API 27
gb...@wideorbit.com <gb...@wideorbit.com> #5
Siyamed, just FYI that the duplicate bug was closed a while ago with WAI
fa...@gmail.com <fa...@gmail.com> #6
I skimmed over the comments on the ticket.
Working on the include font padding I saw some opportunities to provide kind of tighter bounds API.
As far as I can see at the time we didn't know what is the absolute right solution and mention a lot about different alignments, rtl, ltr etc.
it looks like it is worth to investigate this a little further to see if there is any non-binary solution to it (API, handling cases separately, the concept of tight-er bounds that would not work for Bidi text where each line paragraph is LTR / RTL.)
I changed it to be a feature request.
er...@doit.com <er...@doit.com> #7
Assigning to myself as this related to the bug I'm working on
yo...@pipl.com <yo...@pipl.com> #8
er...@pactum.com <er...@pactum.com> #9
Facing the same issue in one of my production apps.
Compose UI version: 1.4.3
Compose compiler version: 1.4.7
Compose material version: 1.2.0
This happens when I use modifier = Modifier.weight(1f, fill = false)
in my text.
Please try the following code snippet to reproduce the behavior
Row(
horizontalArrangement = Arrangement.spacedBy(
dimensionResource(id = size.sizes.spaceBetween)
),
verticalAlignment = Alignment.CenterVertically,
modifier = modifier.clickable(
interactionSource = interactionSource,
indication = null,
role = Role.Button
) {
onClick()
}
) {
Text(
text = "this is a very loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong text",
style = TextStyle(
color = theme.textColor,
fontSize = dimenToSp(size.sizes.fontSize),
lineHeight = dimenToSp(size.sizes.lineHeight),
textDecoration = decoration,
fontWeight = if (isBold) FontWeight.Bold else FontWeight.Normal,
textAlign = multilineTextAlign
),
modifier = Modifier.weight(1f, fill = false) // <--- The issue happens when I apply this modifier
)
Icon(
painter = <Some icon here>,
contentDescription = "",
tint = theme.iconColor,
modifier = Modifier.size(
dimensionResource(id = size.sizes.iconSizing) * getSystemFontScale()
)
)
}
ka...@google.com <ka...@google.com> #10
ju...@gmail.com <ju...@gmail.com> #11
You can use
Description
Please describe your requested enhancement. Good feature requests will solve common problems or enable new use cases.
What you would like to accomplish:
How this might work:
If applicable, reasons why alternative solutions are not sufficient:
Other information (workarounds you have tried, documentation consulted, etc):
Other solutions include