Repository navigation
fix(inputpane): Restore the root when the keyboard hides without content - #26691
Open
ramezgerges wants to merge 1 commit into
Open
ramezgerges wants to merge 1 commit into
ramezgerges wants to merge 1 commit into
Conversation
The input pane resolved the root through Window.Content, whose XamlRoot is null while the content is swapped or cleared. A keyboard hide landing then skipped the reset, so a later bring-into-view panned the root against the stale viewport even though the keyboard was gone. Fixes unoplatform#26579 Co-Authored-By: Claude Opus 5.5 <[email protected]>
2 of 5 tasks
Contributor
|
Tick the box to add this pull request to the merge queue (same as
|
ajpinedam
approved these changes
Nov 24, 2026
Contributor
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
ramezgerges
enabled auto-merge
November 24, 2026 15:02
Contributor
|
The build 248785 found UI Test snapshots differences: Details
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GitHub Issue: closes #26579
PR Type:
🐞 Bugfix
What changed? 🚀
InputPanefound the root to adjust throughWindow.InitialWindow.Content.XamlRoot. That is null while the window content is swapped or cleared. A keyboard hide landing in that window skipped the reset of the root viewport, so the area above the keyboard stayed recorded. The next bring-into-view then panned the whole root up against it, with the keyboard already hidden.On CI this showed up as
RadioButtonsInteractionTests.BasicKeyboardTestfailing intermittently on Android: a[RequiresFullWindow]test swapped the window content while the keyboard hid, andBasicKeyboardTestlater ran with the root panned 10 px up, so its injected taps landed on the next item. The same stale state left the root 296 px up afterWhen_Tab_BringIntoViewon the Android Skia lane. An app that replaces its root page while the keyboard closes hits the same bug.The root is now resolved from the window's own root element, which stays in place while the content changes.
Tests
Given_InputPane.When_OccludedRect_Cleared_Without_Window_Content_Then_Next_Content_Not_Moved: shows the keyboard, clears the window content, hides the keyboard, then loads a page and brings an element into view.Given_InputPanetests pass.PR Checklist ✅
Screenshots Compare Test Runresults.🤖 Generated with Claude Code