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
|
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)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue