Bug with javascript global variable width is undefined
This commit is contained in:
parent
02a3b3c8ac
commit
5f4e902fba
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue