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
{
WindowDim.X = document.body.clientWidth;
WindowDim.Y = document.body.clientHeight;
WindowDim.X = window.innerWidth;
WindowDim.Y = window.innerHeight;
}
if(WindowDim.Y > WindowDim.X)
{

View File

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