Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[regression/6.0.400-preview.22301.10] Label not getting resized to the change in Text length on Android resurfaced again in 6.0.400-preview #8028

Closed
egvijayanand opened this issue Jun 14, 2022 · 7 comments
Labels
i/regression This issue described a confirmed regression on a currently supported version legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor p/0 Work that we can't release without platform/android 🤖 s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@egvijayanand
Copy link
Contributor

egvijayanand commented Jun 14, 2022

Description

Same issue as #5717 and #6066. Resurfaced again in 6.0.400-preview.22301.10

Kindly add the GA version to the Last version that worked well list, as of now selected RC3.

Steps to Reproduce

Same as mentioned in #6066

Version with bug

6.0 (current)

Last version that worked well

Release Candidate 3 (current)

Affected platforms

Android

Affected platform versions

Android 31.0

Did you find any workaround?

Nope

Relevant log output

No response

@egvijayanand egvijayanand added s/needs-verification Indicates that this issue needs initial verification before further triage will happen t/bug Something isn't working labels Jun 14, 2022
@Eilon Eilon added the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Jun 14, 2022
@danch15
Copy link

danch15 commented Jun 15, 2022

I create the project demo use by "dotnew new maui", then I run the demo in Android 7.1.2, and clicked the "Click me" button, the button's width is not changed, the button's text changed to "Clicked", it's wrong, the right text must be "Clicked 1 time".
Why this going on again !!?

@jfversluis jfversluis added platform/android 🤖 and removed s/needs-verification Indicates that this issue needs initial verification before further triage will happen labels Jun 15, 2022
@jfversluis
Copy link
Member

Kindly add the GA version to the Last version that worked well list, as of now selected RC3.

I've added new options to make things more clear. Thanks!

@kristinx0211
Copy link

with vs 17.3.0 Preview 3.0 [32614.275.main], after clicked the "Click me" button, the button's width is not changed, the button's text changed to "Clicked".

@kristinx0211 kristinx0211 added the s/verified Verified / Reproducible Issue ready for Engineering Triage label Jun 15, 2022
@jfversluis jfversluis added the i/regression This issue described a confirmed regression on a currently supported version label Jun 15, 2022
@jsuarezruiz jsuarezruiz added this to the 6.0-sr2 milestone Jun 15, 2022
@pierre01
Copy link

I saw the same issue on Android :

If a Label Text property is empty in XAML (i.e. TEXT="")
When the label Text is updated in code, the label does not display the value.

Workaround:
Set a default Text value to the label (e.g. Text="0.00%" )

This is an issue with the latest 6.0.400

@hartez
Copy link
Contributor

hartez commented Jun 21, 2022

Should be fixed by #8136

@ToolmakerSteve
Copy link

ToolmakerSteve commented Jun 22, 2022

UPDATE - I see its moot, given #8136


Note: InvalidateArrange appears to be broken on Android for button.

See Explicitly call InvalidateArrange, where I demonstrate it not resizing to the new text even with a later InvalidateArrange call. Not shown, but I tested other variants, like delaying via Dispatcher.Dispatch, and calling InvalidateArrange on the parent layout.

I did various tests ("Work-arounds #1-#3), to show that the initial sizing logic does correctly work.

In "Work-around #4", I verified that if new MainPage() is made, with the larger text initially, that it does get the size correct.

There must be something that is done during initial creation of the native control, that is not done by a later InvalidateArrange.

@AndreduToit
Copy link

@symbai
Thanks for referencing this - it is probably the same issue.
Anyway - lets see how this gets fixed. I said it before and say again - Xamarin Forms was somewhat flaky but .NET Maui is proving to be even more so.

@samhouts samhouts added the p/0 Work that we can't release without label Jul 12, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Aug 12, 2022
@samhouts samhouts changed the title Label not getting resized to the change in Text length on Android resurfaced again in 6.0.400-preview [regression/6.0.400-preview.22301.10] Label not getting resized to the change in Text length on Android resurfaced again in 6.0.400-preview Dec 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
i/regression This issue described a confirmed regression on a currently supported version legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor p/0 Work that we can't release without platform/android 🤖 s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests