[Android] Incorrect text measurements #4414
Labels
kind/bug
Something isn't working
platform/android 🤖
Categorizes an issue or PR as relevant to the Android platform
project/layout 🧱
Categorizes an issue or PR as relevant to layouting and containers (Measure/Arrange, Collections,..)
project/text 🔤
Categorizes an issue or PR as relevant to text (TextBox, PasswordBox, TextBlock, Fonts, …)
Milestone
Incorrect Android's implementation of TextBlock's
.Measure()
The layout engine is relying to the desired size of a control to know if this one should be clipped. That means the control should return its actual
desiredSize
.This bug has been identified by the automated visual tests on PR #4178.
Current behavior
Take this XAML:
The correct result to a call to
.Measure()
should be something like(510, 20)
, but the current implementation will cap its measurement toavailableSize
, giving a result like(35, 20)
in this case.Impact of this bug
This bug will prevent the layout from applying clipping when it's required.
Expect result
(for the XAML provided)
Current result on Android
(for the XAML provided)
Affected platform(s)
The text was updated successfully, but these errors were encountered: