baskren / Forms9Patch

Simplify image management and text formatting in your Xamarin.Forms apps
http://Forms9Patch.com
Other
128 stars 33 forks source link

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

Open smalgin opened 3 years ago

smalgin commented 3 years ago

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

smalgin commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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

smalgin commented 3 years ago

I don’t have iOS to test