noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 20/107: Bug with javascript global variable w


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 20/107: Bug with javascript global variable width is undefined
Date: Mon, 26 Aug 2019 10:31:48 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 5f4e902fba96832412fbab6972ca6b3ed72caaed
Author: Dany De Bontridder <address@hidden>
Date:   Tue Feb 19 20:35:26 2019 +0100

    Bug with javascript global variable width is undefined
---
 html/js/scripts.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/html/js/scripts.js b/html/js/scripts.js
index f1de3b0..37b4e95 100644
--- a/html/js/scripts.js
+++ b/html/js/scripts.js
@@ -1487,7 +1487,7 @@ function calcy(p_sy)
     {
         sy = document.documentElement.scrollTop + p_sy;
     }
-    if ( width < 801 ) {
+    if ( document.viewport.getDimensions().width < 801 ) {
         sy=sy/2;
     }
     return sy;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]