Skip to content

while calculating distance between elements, paddings, line heights and margins on an element are not considered #1

@deepali711

Description

@deepali711

Hello @sethijatin

While i was trying isNear() function with Direction.TOP on an element, to find the vertical spacing between two elements, the code returned 2px, while it should have been 42 to 44 px instead.
As per further analysis, the API didn't considered the top padding and line heights of the div of element.
Is there any way to find the vertical / horizontal spacing that includes the line heights and paddings on the element, and outputs total distance between elements?

Thanks
Deepali

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions