js: Fix radix parameters.

This commit is contained in:
Florian Bruhin 2015-05-12 07:14:10 +02:00
parent d1e88c5e8d
commit 28ec7b4698

View File

@ -75,8 +75,8 @@ function isElementInViewport(node) {
if (computedStyle.visibility !== 'visible' ||
computedStyle.display === 'none' ||
node.hasAttribute('disabled') ||
parseInt(computedStyle.width, '10') === 0 ||
parseInt(computedStyle.height, '10') === 0) {
parseInt(computedStyle.width, 10) === 0 ||
parseInt(computedStyle.height, 10) === 0) {
return null;
}
return boundingRect.top >= -20;