You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3890d68
Browse filesBrowse the repository at this point in the historyBrowse files
fix(Layer): a capped layer over its trigger keeps its top (#10497)
* fix(Layer): a capped layer over its trigger keeps its top
A layer taller than the room on both sides of its trigger sits over
the trigger, where the viewport fit shifts it. The keyboard cap makes
it shorter, so it fits below the trigger, and the fallback order moved
it there: the field being typed into jumped down as the keyboard came
up, and back up as it went. While the cap holds such a layer, the
runtime now lifts it back to the block-start it had when the cap
landed, with insets that move its anchor area. Taking the cap off drops
the lift.
* Merge branch 'main' into uikit/c23-tall-cap-keeps-top
Co-authored-by: Cindy Zhang <cindyxz@meta.com>
[fix] A popover taller than the room on both sides of its trigger keeps its top when the keyboard shortens it. The field being typed into stays under the caret. It used to jump below the trigger as the keyboard arrived, and back as it went.
it('takes the cap off a layer that does not read the inset at once as the keyboard goes down, even where that moves it (spec:AST-059 FR10)',()=>{
487
+
it('takes the cap off a layer that does not read the inset at once as the keyboard goes down, and its block-start stays (spec:AST-059 FR9, FR10)',()=>{
473
488
// At its full height the viewport fit places this layer over its
474
-
// trigger; capped, it sits below the trigger.
489
+
// trigger. Shorter, it would fit below the trigger, at 300.
it('caps a layer the viewport fit pushed up over its trigger from where it starts once it is shorter',()=>{
556
+
it('keeps the block-start edge of a layer the viewport fit pushed up over its trigger: shorter, it fits below the trigger, and the cap lifts it back (spec:AST-059 FR9)',()=>{
0 commit comments