Span's TapGestureRecognizer not working if text is truncated #21837
Labels
area-controls-label
Label, Span
area-gestures
Gesture types
platform/windows 🪟
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
Consider a Label with FormattedText and a TapGestureRecognizer attached to one of its Spans. The TapGestureRecognizer does not execute the Command if the Label's text is truncated, either as a result of limiting
MaxLines
and the available width or by limiting both, width and height.This bug affects the app on Windows, but not on Android. Other platforms are untested.
Tested versions:
Steps to Reproduce
Link to public reproduction project repository
https://github.com/Veilenus/FormattedTextGestureRecognizerBug
Version with bug
8.0.20 SR4
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
Unknown/Other
Affected platforms
Windows, I was not able test on other platforms
Affected platform versions
No response
Did you find any workaround?
Unfortunately, no. A hacky one might be considered if the Label's
FontSize
andLineHeight
are statically known, thus allowing to wrap the Label in a Layout of choice and limiting the latter'sHeightRequest
instead of the Label'sMaxLines
.Relevant log output
No response
The text was updated successfully, but these errors were encountered: