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:
@@ -80,6 +80,11 @@ describe("terminal mobile keyboard layout CSS contract", () => {
|
||||
expect(ruleBody).toContain(`max-height: ${viewportExpression}`);
|
||||
});
|
||||
|
||||
it("keyboard-open selector includes overflow: hidden to clip content during keyboard transition", () => {
|
||||
const ruleBody = findKeyboardOpenRule();
|
||||
expect(ruleBody).toContain("overflow: hidden");
|
||||
});
|
||||
|
||||
it("height and max-height use the identical expression", () => {
|
||||
const ruleBody = findKeyboardOpenRule();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user