Skip to content

[tvOS] ScrollViewer extent stuck at 19px when shrunk to 16x16 with WinUI Generic.xaml styles #25151

Open

Description

@MartinZikmund

Current behavior 🐛

With the WinUI Generic.xaml styles from #21513, Given_ScrollViewer.When_ScrollViewer_Resized fails on Skia tvOS only. When the ScrollViewer shrinks to 16×16, the extent and content stay at 19px:

Expected Super-shrinking [16x16] to be 16.0 because Extent, but found 19.0 (difference of 3).
Expected Super-shrinking [16x16] to be 16.0 because content ActualWidth, but found 19.0 (difference of 3).

It fails the same way on every retry (CI build 238253, tvOS Skia Runtime Tests 1, 4 attempts). It passes on iOS, Android, WASM, Linux, macOS and Windows. Larger sizes (200×400, 250×450, 225×425) pass on tvOS too. The last several master builds don't fail it.

The test is disabled on tvOS in #21513 until this is resolved.

Expected behavior 🎯

The extent and content size match the 16×16 viewport, as they do on the other platforms and on master.

How to reproduce it (as minimally and precisely as possible) 🔬

Run Uno.UI.RuntimeTests.Tests.Windows_UI_Xaml_Controls.Given_ScrollViewer.When_ScrollViewer_Resized on Skia tvOS with the #21513 styles, after removing the SkiaTvOS exclusion.

Suspected cause (not verified): the new ScrollViewer/ScrollBar template has a minimum size or margin, about 19px, that takes effect at tiny viewport sizes on tvOS. tvOS has no mouse, so the ScrollBar indicator mode or visual state may differ from iOS.

Workaround 🛠️

None needed for apps yet. This only appears with a 16px ScrollViewer, and only with the #21513 styles.

Renderer 🎨

  • Skia

Affected platforms 📱💻🖥️

tvOS

Uno.Sdk version (and other relevant versions) 📦

master + #21513 (dev/mazi/generic-xaml)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/scrollviewer ⏬kind/bugtriage/untriaged

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions