cinera.js: Base dims on window.inner{Width/Height}

This commit is contained in:
Matt Mascarenhas 2021-02-04 01:22:09 +00:00
parent e7d70ccb3a
commit 50dbc7b5c3
2 changed files with 4 additions and 4 deletions

View File

@ -57,8 +57,8 @@ GetRealOrientation(PreferredLandscape, IsMobile)
} }
else else
{ {
WindowDim.X = document.body.clientWidth; WindowDim.X = window.innerWidth;
WindowDim.Y = document.body.clientHeight; WindowDim.Y = window.innerHeight;
} }
if(WindowDim.Y > WindowDim.X) if(WindowDim.Y > WindowDim.X)
{ {

View File

@ -2940,8 +2940,8 @@ ComputeOptimalGridSize()
} }
else else
{ {
WindowDim.X = document.body.clientWidth; WindowDim.X = window.innerWidth;
WindowDim.Y = document.body.clientHeight; WindowDim.Y = window.innerHeight;
} }
var DimReduction = { var DimReduction = {
X: 0, X: 0,