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

[Bug] SegmentedControl.Segments[x].Text doesn't update #98

Open
smalgin opened this issue Mar 29, 2021 · 4 comments
Open

[Bug] SegmentedControl.Segments[x].Text doesn't update #98

smalgin opened this issue Mar 29, 2021 · 4 comments

Comments

@smalgin
Copy link
Contributor

smalgin commented Mar 29, 2021

Description

Steps to Reproduce

  1. Download & build demo
  2. Tap 'Tap text' button - no text change!
  3. Tap 'Tap HtmlText' button - no text change

Expected Behavior

Text should change

Actual Behavior

Text doesn't change

Basic Information

  • Version with issue: latest
  • Last known good version: N/A
  • IDE: VS Community latest
  • Platform Target Frameworks:
    • Android: 10
  • Nuget Packages: latest forms9patch, latest Xamarin
@smalgin
Copy link
Contributor Author

smalgin commented Mar 29, 2021

NOTE: HtmlText doesn't update in my actual project either, but it did update in the demo. Both actual code & demo reference latest f9p and xamarin packages. Idk what is going on there... I just want control to show different text when the playback is on.

@smalgin
Copy link
Contributor Author

smalgin commented Mar 29, 2021

Ok, so my demo was a bit incorrect - I updated it.
I removed color setter and adjusted text length in HtmlText to be the same character-wise.

Now if you tap first or second segments, text doesn't update.

image

Looks like text update is broken, and HtmlText gets updated only when label font size gets adjusted.
I modified demo to avoid dynamic adjustment of label font size and the bug got exposed.

@baskren
Copy link
Owner

baskren commented Mar 29, 2021

Ugh. Is this only happening in Android or does it happen in iOS as well?

@smalgin
Copy link
Contributor Author

smalgin commented Mar 29, 2021

I don’t have iOS to test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants