cinera.js: Base dims on window.inner{Width/Height}
This commit is contained in:
parent
e7d70ccb3a
commit
50dbc7b5c3
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue