Skip to content

.offset doesn't return correct width/height #2

Description

@xiaowl

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions