Try not to trigger excessive style re-calc

This commit is contained in:
2016-06-24 17:56:26 +08:00
parent 18bcb8a81e
commit 8f78202f75
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -78,7 +78,7 @@
for(var j = 0, k; j < s.length; j ++)
{
k = s[j];
k.element.style.top = String(-k.verticalRange*((j + 1)*cp)) + "%";
k.element.style.top = ( -k.verticalRange * ( ( j + 1 ) * cp ) ).toFixed( 2 ) + "%";
}
}
}