From 4e6d1880ef1995a7d950d223b02f7658c5c1fc39 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Mon, 8 Jan 2018 11:34:12 +0100 Subject: [PATCH] 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 bc941e6ae..56604268c 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();