fix: cap bottom panel above virtual keyboard
This commit is contained in:
1 parent
04686dcc7d
commit
1c330ba44f
2 files changed
+16
-6
No files matched your search
@@ -8,4 +8,10 @@ describe('Sidebar layout-push integration', () => {
|
||||
expect(source).not.toContain('Math.min(state.bottomHeight, window.innerHeight)')
|
||||
expect(source.match(/pushedBottomHeight\(/g)).toHaveLength(3)
|
||||
})
|
||||
|
||||
it('caps panel geometry against the viewport visible above the keyboard', () => {
|
||||
expect(source).toContain('viewport.height - keyboardInset')
|
||||
expect(source.match(/viewportHeight: layoutViewportHeight/g)).toHaveLength(4)
|
||||
expect(source).toContain('viewport.width, layoutViewportHeight]')
|
||||
})
|
||||
})
|
||||
Reference in new issue
Block a user