Skip to content

Determine the top and left padding of an element #2678

Answered by kumilingus
DarkMagus asked this question in Q&A
Discussion options

You must be logged in to vote

This should do:

element.position().difference(scroller.getVisibleArea().topLeft())

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DarkMagus
Comment options

Answer selected by kumilingus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants