You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If no width/height property is set in CSS declaration, element.style.width would return "", then parseInt return NaN as the result.
I think it's better to use the window.getComputedStyle(element, null) to retrieve the width/height property.
The text was updated successfully, but these errors were encountered:
If no width/height property is set in CSS declaration, element.style.width would return "", then parseInt return NaN as the result.
I think it's better to use the window.getComputedStyle(element, null) to retrieve the width/height property.
The text was updated successfully, but these errors were encountered: