Skip to content

Position is wrong, if text ist longer than inputbox/textarea #51

Open
@anotherCoward

Description

@anotherCoward
if (element.scrollLeft)
  coordinates.left = coordinates.left - element.scrollLeft;
if (element.scrollHeight)
  coordinates.top = coordinates.top - element.scrollTop; 

right before returning the result, solves the issue.

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