mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-12 11:55:32 +00:00
fix(web): random viewport-size def bug
This commit is contained in:
parent
bb2250fdf0
commit
1715463fd6
1 changed files with 2 additions and 2 deletions
|
|
@ -8,8 +8,8 @@ export class ViewportZoneSource implements RecognitionZoneSource {
|
|||
return DOMRect.fromRect({
|
||||
y: 0,
|
||||
x: 0,
|
||||
height: Math.max(document.documentElement.clientWidth || 0, window.innerWidth || 0),
|
||||
width: Math.max(document.documentElement.clientHeight || 0, window.innerHeight || 0)
|
||||
width: Math.max(document.documentElement.clientWidth || 0, window.innerWidth || 0),
|
||||
height: Math.max(document.documentElement.clientHeight || 0, window.innerHeight || 0)
|
||||
});
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue