Skia TextBox Alignment/Padding not behaving as expected #16568
Labels
difficulty/tbd
Categorizes an issue for which the difficulty level needs to be defined.
kind/bug
Something isn't working
platform/wasm 🌐
Categorizes an issue or PR as relevant to the WebAssembly 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, …)
triage/untriaged
Indicates an issue requires triaging or verification
Current behavior
The Fluent Textbox "vertical alignment" for its text differs between platforms:
WASM:
DESKTOP:
We can observe that as long as we change the FontSize or the Height attributes, the result will be different.
Probably it is the alignment in skia that is broken, since WASM version seems correct.
Expected behavior
The alignment should be the same in all platforms
How to reproduce it (as minimally and precisely as possible)
Using:
Uno.Templates::5.2.31
Run:
dotnet new unoapp -o TextBoxAlignment -preset "recommended" -platforms "android" -platforms "maccatalyst" -platforms "wasm" -platforms "windows" -platforms "desktop" -platforms "ios" -theme-service False -vscode False -pwa False -theme "fluent" -presentation "mvux" -config False -di False -log "none" -nav "blank" -http False -loc False -tests "none" -toolkit False -dsp False -id "com.companyname.TextBoxAlignment" -pub "O=TextBoxAlignment"
Add this code to MainPage.xaml:
Workaround
No response
Works on UWP/WinUI
None
Environment
No response
NuGet package version(s)
No response
Affected platforms
No response
IDE
No response
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: