Repository navigation
fix(wasm): Keep popups open when the soft keyboard hides - #25387
MartinZikmund wants to merge 4 commits into
Conversation
Hiding the soft keyboard, Edge on Android briefly grows the layout viewport before its toolbar settles back. The transient resize reached the window and light-dismissed open flyouts and overlay panes. Height-only changes during text entry are now reported once settled. Fixes #25380 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Replays Edge's transient viewport growth during text entry and checks an overlay SplitView pane and a Flyout stay open, while a lasting height change still reaches the window. Also covers the shared InputPane occlusion path showing and clearing with both open. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Claude finished @MartinZikmund's task in 16s —— View job Review summaryVerdict: ship, with one non-blocking suggestion.
Issues: 0 blocking, 1 minor (inline, on the deferral also applying to height shrink). I reviewed by inspection only. I did not build or run anything. |
| if (last | ||
| && rect.width === last.width | ||
| && rect.height !== last.height | ||
| && document.activeElement?.id === UnoDomIds.input) { |
There was a problem hiding this comment.
Side effect worth noting: this defers every height-only change while the input is focused, including the legitimate shrink when the soft keyboard shows (on browsers using resizes-content). The app's layout then lags the keyboard by 300ms, so the focused TextBox may be briefly covered before it's scrolled into view. Consider limiting the deferral to height growth (rect.height > last.height), since the blip is a growth and a shrink is never the toolbar artifact. Otherwise, please confirm on a device that the show path isn't visibly delayed.
Gating on the focused text input also delayed height-only resizes of a desktop browser window (dragging its bottom edge, docking dev tools) while a TextBox had focus. Resizes are now only held back while the soft keyboard occludes the viewport or shortly after it hides. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The blip tests now simulate the keyboard showing and hiding through the visual viewport, as Edge does, and a new test checks that a height-only resize during text entry without a soft keyboard reaches the window immediately. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Claude finished @MartinZikmund's task in 15s —— View job Review summaryVerdict: ship. 0 blocking issues, 2 minor notes. I reviewed by inspection only and did not build or run anything.
Notes
|
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-25387/wasm-skia-net9/index.html |
|
The build 239127 found UI Test snapshots differences: Details
|
|
Tick the box to add this pull request to the merge queue (same as
|
GitHub Issue: closes #25380
PR Type:
🐞 Bugfix
What changed? 🚀
On Skia WebAssembly in Edge on Android, hiding the soft keyboard also closed open flyouts and overlay
SplitView/NavigationViewpanes.Cause: when the keyboard hides, Edge re-lays out the page before it re-attaches its bottom toolbar. The layout viewport briefly grows by the toolbar height (793 → 845 CSS px on the test device) and returns about 130ms later. The text input stays focused the whole time.
WebAssemblyWindowWrapperpassed that blip on as a real window resize, so WinUI's resize rules dismissed everything:XamlRoot.Changed→PopupRoot.CloseLightDismissablePopupsclosed the flyouts.SplitViewheight changed →OnSizeChanged→TryCloseLightDismissiblePaneclosed the pane.Fix: while the soft keyboard occludes the visual viewport, or within 1s after it hides, a change that only affects the height is reported to the managed window once it has held for 300ms. A blip that reverts within that window is never reported. Everything else is reported immediately, as before: width changes, rotations, and any resize without a soft keyboard. That includes dragging a desktop browser's bottom edge, or docking DevTools, while a TextBox has focus.
Validation:
Given_InputPane.When_Viewport_Blips_As_Soft_Keyboard_Hides_Then_*replay the blip. They fail without the fix (both the pane and the flyout close) and pass with it. The tests replay Edge's sequence through a stand-invisualViewport: keyboard shown, keyboard hidden, then the blip.When_Viewport_Height_Changes_With_Soft_Keyboard_Then_Window_Resized_Once_Settledchecks that a lasting height change still reaches the window.When_Viewport_Height_Changes_During_Text_Entry_Without_Soft_Keyboard_Then_Window_Resized_Immediatelycovers desktop resizing while a TextBox has focus. That test fails with a focus-only gate.When_OccludedRect_Cleared_Then_*check that the sharedInputPaneocclusion path (keyboard shown, then cleared) leaves an overlay pane and a flyout open.PR Checklist ✅
Screenshots Compare Test Runresults.🤖 Generated with Claude Code