提交 585c22af 编写于 作者: 1 123 提交者: Benjamin Pasero

[Fix a typo] s/clientWidth/clientHeight/ (#56544)

上级 7749465d
...@@ -486,8 +486,8 @@ export function getClientArea(element: HTMLElement): Dimension { ...@@ -486,8 +486,8 @@ export function getClientArea(element: HTMLElement): Dimension {
return new Dimension(window.innerWidth, window.innerHeight); return new Dimension(window.innerWidth, window.innerHeight);
} }
// Try with document.body.clientWidth / document.body.clientHeigh // Try with document.body.clientWidth / document.body.clientHeight
if (document.body && document.body.clientWidth && document.body.clientWidth) { if (document.body && document.body.clientWidth && document.body.clientHeight) {
return new Dimension(document.body.clientWidth, document.body.clientHeight); return new Dimension(document.body.clientWidth, document.body.clientHeight);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册