noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 24/323: use calcy instead of computing the sc


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 24/323: use calcy instead of computing the scroll
Date: Wed, 14 Mar 2018 17:38:11 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 4e6d1880ef1995a7d950d223b02f7658c5c1fc39
Author: Dany De Bontridder <address@hidden>
Date:   Mon Jan 8 11:34:12 2018 +0100

    use calcy instead of computing the scroll
---
 html/js/card.js | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/html/js/card.js b/html/js/card.js
index bc941e6..5660426 100644
--- a/html/js/card.js
+++ b/html/js/card.js
@@ -559,14 +559,7 @@ function select_card_type(obj)
     var content="select_card_div";
     if ( $(content)){removeDiv(content);}
     var sx=0;
-    if ( window.scrollY)
-    {
-            sx=window.scrollY+160;
-    }
-    else
-    {
-        sx=document.body.scrollTop+160;
-    }
+    sx=calcy(160);
 
     var str_style="top:"+sx+"px;height:auto";
     waiting_box();



reply via email to

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