This is the first time I’ve tried aligning / justi...
# compose-desktop
s
This is the first time I’ve tried aligning / justifying text in compose. Am I doing something wrong, or is this a bug? I’m trying to right-justify the text, but it’s not working.
Copy code
Column(
    Modifier
        .fillMaxSize()
        .padding(20.dp)
) {
    Text(
        text = "Test test test asdfasdfa sfj aslf lajsdlf jlajdsfl jlasjf jaslkfj klajdfl jaslf lkasjfljaslk f",
        style = typography.h3,
        color = Color.White,
        textAlign = TextAlign.End,
        modifier = Modifier.background(Color.Black),
    )
}
message has been deleted
s
That doesn't look right
s
my code or the result?
s
Result
Right justify is right align right?
s
I would assume
s
What happens when you h3.copy(textAling = end) instead of passing as s parameter
I wonder if the error us material text or text itself
I mean the theming
Also is it material.Text or foundation.Text(which is now deprecated)
s
val typography = MaterialTheme.typography
Copy code
style = typography.h3.copy(textAlign = TextAlign.End),
has the same result
s
Can you please create a bug. Is device on LTR locale?
s
I’m assuming it’s on LTR Locale
s
Also does TextAlign.Right behave the same? Is it alpha7? Alpha6?
s
I haven’t changed it. I also can’t Center text
s
Looks like a cleaaar unexpected bug. Not sure how it happened
s
this is desktop compose.
s
Oooo
I see
I am sorry apologies, i got the notification but didnt pay attention to the channel
Yes text alignment is handled at the platform dependent code.
s
a
Yes, it's a bug and it will be fixed in the next Milestone release (i.e. soon 🙂 )