fix(FN-1043): fix terminal mobile keyboard layout
- Defer fitAddon.fit() via requestAnimationFrame after CSS repaint to ensure container dimensions are settled - Add overflow:hidden to keyboard-open CSS rule to prevent layout shift - Add regression tests for xterm re-fit on mobile keyboard open/close - Update terminal mobile keyboard documentation in README files
This commit is contained in:
@@ -8064,6 +8064,10 @@ body {
|
||||
inherited min-height or flex layout. */
|
||||
height: var(--vv-height, calc(100dvh - var(--keyboard-overlap, 0px)));
|
||||
max-height: var(--vv-height, calc(100dvh - var(--keyboard-overlap, 0px)));
|
||||
/* Clip any content that exceeds the constrained height during
|
||||
the keyboard-open transition so the terminal doesn't poke out
|
||||
below the visible area while xterm re-fits. */
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user