From 50dbc7b5c3d2120f463aaf74ff2ebdb8b60ef70c Mon Sep 17 00:00:00 2001 From: Matt Mascarenhas Date: Thu, 4 Feb 2021 01:22:09 +0000 Subject: [PATCH] cinera.js: Base dims on window.inner{Width/Height} --- cinera/cinera_pre.js | 4 ++-- cinera/cinera_search_pre.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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,