Bug with javascript global variable width is undefined

This commit is contained in:
Dany De Bontridder 2019-02-19 20:35:26 +01:00
parent 02a3b3c8ac
commit 5f4e902fba

View file

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