mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 22:41:31 +01:00
4px margin for home indicator
This commit is contained in:
@@ -518,7 +518,7 @@ export function getClientArea(element: HTMLElement): Dimension {
|
||||
// in PWA mode, the visual viewport always includes the safe-area-inset-bottom (which is for the home indicator)
|
||||
// even when you are using the onscreen monitor, the visual viewport will include the area between system statusbar and the onscreen keyboard
|
||||
// plus the area between onscreen keyboard and the bottom bezel, which is 20px on iOS.
|
||||
? (20 + 8) // body margin is 8px
|
||||
? (20 + 4) // + 4px for body margin
|
||||
: 0
|
||||
);
|
||||
return new Dimension(width, height);
|
||||
|
||||
Reference in New Issue
Block a user