diff --git a/cinera/cinera_pre.js b/cinera/cinera_pre.js index 7eda733..5fc36ab 100644 --- a/cinera/cinera_pre.js +++ b/cinera/cinera_pre.js @@ -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) { diff --git a/cinera/cinera_search_pre.js b/cinera/cinera_search_pre.js index 29dd079..cf99c05 100644 --- a/cinera/cinera_search_pre.js +++ b/cinera/cinera_search_pre.js @@ -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,