Skip to content

fix: PipsPager rendering - #23263

Merged
MartinZikmund merged 4 commits into
masterfrom
dev/mazi/pips-fix
May 14, 2026
Merged

MartinZikmund merged 4 commits into
masterfrom
dev/mazi/pips-fix

Conversation

@MartinZikmund

Copy link
Copy Markdown
Member

GitHub Issue: closes #20577

PR Type:

What changed? 🚀

PR Checklist ✅

# Conflicts:
#	src/Uno.UI/UI/Xaml/Controls/PipsPager/PipsPager.cs
Copilot AI review requested due to automatic review settings May 13, 2026 12:19
@MartinZikmund
MartinZikmund marked this pull request as ready for review May 13, 2026 12:19
@MartinZikmund
MartinZikmund enabled auto-merge May 13, 2026 12:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 ScrollViewer scroll-allowance computation to depend only on ScrollBarVisibility (intended to allow overflow during measure/layout even when ScrollMode is disabled).
  • Remove the PipsPager.MeasureOverride workaround 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.

@MartinZikmund
MartinZikmund disabled auto-merge May 13, 2026 12:37
@MartinZikmund
MartinZikmund marked this pull request as draft May 13, 2026 12:37
@unodevops

Copy link
Copy Markdown
Contributor

* 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]>
Copilot AI review requested due to automatic review settings May 13, 2026 13:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

@unodevops

Copy link
Copy Markdown
Contributor

@MartinZikmund
MartinZikmund marked this pull request as ready for review May 13, 2026 18:17
@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 212418 found UI Test snapshots differences: skia-linux-screenshots: 61, skia-windows-screenshots: 50, wasm: 9

Details
  • skia-linux-screenshots: 61 changed over 2346

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ColorPickerSample.png-dark
    • ColorPickerSample.png
    • ClipboardTests.png-dark
    • DisplayInformation.png-dark
    • Focus_FocusVisual_Properties.png-dark
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • ImageBrush_Stretch.png-dark
    • ImageBrush_Stretch.png
    • ButtonClippingTestsControl.png-dark
    • CalendarView_Theming.png-dark
    • Examples.png-dark
    • Examples.png
    • ExpanderColorValidationPage.png-dark
    • ExpanderColorValidationPage.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_CurrentReading.png
    • Gamepad_Enumeration.png-dark
    • Gamepad_Enumeration.png
    • ImageIconPage.png-dark
  • skia-windows-screenshots: 50 changed over 2348

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ContentPresenter_NativeEmbedding_ZIndex.png
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • CompositionPath.png-dark
    • CompositionPath.png
    • Focus_FocusVisual_Properties.png-dark
    • Buttons.png-dark
    • DropDownButtonPage.png-dark
    • DropDownButtonPage.png
    • Image_Stretch_None.png-dark
    • Image_Stretch_None.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • CompositionEffectBrush.png-dark
    • CompositionEffectBrush.png
    • Examples.png
    • ListViewHeaderUpdate.png-dark
    • Path_Arc.png-dark
  • wasm: 9 changed over 1076

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • SamplesApp.Windows_UI_Xaml_Controls.ListView.ListViewSelectedItems
    • UITests.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_NavigationProperties
    • initial_state
    • MUXControlsTestApp.SwipeControlPage2
    • SamplesApp.Wasm.Windows_UI_Xaml_Controls.ListView.ListView_IsSelected
    • UITests.Shared.Windows_UI_Xaml_Controls.MediaPlayerElement.MediaPlayerElement_Minimal
    • SamplesApp.Microsoft_UI_Xaml_Controls.WebView2Tests.WebView2_EnableDevTools
    • UITests.Shared.Microsoft_UI_Xaml_Controls.ExpanderTests.WinUIExpanderPage
    • UITests.Shared.Windows_UI_Xaml_Controls.ImageTests.Image_Stretch_Algmnt_Inf_Vertical

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 212418 has failed on Uno.UI - CI.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@unodevops

Copy link
Copy Markdown
Contributor

@MartinZikmund
MartinZikmund enabled auto-merge May 14, 2026 12:59
@MartinZikmund
MartinZikmund merged commit f59188f into master May 14, 2026
45 checks passed
@MartinZikmund
MartinZikmund deleted the dev/mazi/pips-fix branch May 14, 2026 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PipsPager dots disappear

5 participants