Open pcharleszemora opened 7 months ago
We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.
@pcharleszemora @jsuarezruiz @PureWeen
You can remove the HorizontalOptions="Start"
option from the button or set it to Fill
which is a default option.
@kubaflo that works only if the text is always a long one. With short text like "hello" the text would end up centered while the goal here is to have it left aligned. Besides that, this is working on Android.
@albyrock87 okay I see, I will try to fix it
@albyrock87 check it out: https://github.com/dotnet/maui/pull/20133 :)
Description
There appears to be different behavior for
Button.LineBreakMode
oniOS
andAndroid
in the scenario included in the Steps to Reproduce section.On
iOS
, one can see theButton.Text
does not appear to truncate (Figure 1.1). OnAndroid
, one can see theButton.Text
does appear to truncate (Figure 1.2).Is this behavior by design or a bug?
Figure 1.1: iOS
Figure 1.2: Android
Steps to Reproduce
Replace the
XAML
inMainPage.xaml
with this:iOS
simulator.Observed: The
Button.Text
does not truncate. Expected: TheButton.Text
to truncate.Link to public reproduction project repository
No response
Version with bug
8.0.3
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS 15.5
Did you find any workaround?
In this scenario, instead of using a
Button
, try using aLabel
w/TapGestureRecognizer
.Relevant log output
No response