Skip to content

Code snippet: what if the inner element has a border ? #2

Description

@niloct

return (innerWidth - outerWidth);

If the inner element has a border, just subtracting clientWidth from offsetWidth wouldn't do, right ? You would have to subtract border width too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions