use calcy instead of computing the scroll

This commit is contained in:
Dany De Bontridder 2018-01-08 11:34:12 +01:00
parent b5795ac97c
commit 4e6d1880ef

View file

@ -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();