Repository navigation
fix: PipsPager rendering - #23263
fix: PipsPager rendering#23263
PipsPager rendering#23263Conversation
# Conflicts: # src/Uno.UI/UI/Xaml/Controls/PipsPager/PipsPager.cs
There was a problem hiding this comment.
Pull request overview
This PR aims to fix the PipsPager “dots disappear” rendering issue (Issue #20577) by correcting how the inner ScrollViewer participates in layout when scrolling is disabled for user input, and by removing a PipsPager-local measure workaround now that the underlying scrolling/layout behavior is adjusted.
Changes:
- Adjust
ScrollViewerscroll-allowance computation to depend only onScrollBarVisibility(intended to allow overflow during measure/layout even whenScrollModeis disabled). - Remove the
PipsPager.MeasureOverrideworkaround that temporarily forced scrollability during measure, and fix wrap-related virtualization toggling. - Add a runtime test covering navigation past the initial visible pip window.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/Uno.UI/UI/Xaml/Controls/ScrollViewer/ScrollViewer.cs | Changes how _presenter.Can*Scroll is computed to allow overflow/layout when modes are disabled. |
| src/Uno.UI/UI/Xaml/Controls/PipsPager/PipsPager.cs | Removes the measure workaround tied to scroll presenter behavior; adjusts repeater virtualization toggling. |
| src/Uno.UI.RuntimeTests/Tests/Microsoft_UI_Xaml_Controls/Given_PipsPager.cs | Adds a regression test for realizing/rendering trailing pips after navigating beyond MaxVisiblePips. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23263/wasm-skia-net9/index.html |
* Decouple layout overflow from user-input scrolling: ScrollContentPresenter now reads HorizontalScrollBarVisibility/VerticalScrollBarVisibility (not CanHorizontallyScroll/CanVerticallyScroll) to decide whether to give the content an infinite measure slot. ComputeIsScrollAllowed is reverted to its original form so pointer-wheel/direct-manipulation gating stays tied to ScrollMode. * Tighten the runtime test: force ElementTheme.Light, opaque white Background, opaque screenshot, and require c.A == 255 alongside the darker-than-white RGB check so fully-transparent pixels can't pass. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23263/wasm-skia-net9/index.html |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23263/wasm-skia-net9/index.html |
|
The build 212418 found UI Test snapshots differences: Details
|
|
|
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23263/wasm-skia-net9/index.html |
GitHub Issue: closes #20577
PR Type:
What changed? 🚀
PR Checklist ✅
Screenshots Compare Test Runresults.