Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS Transform Support #6

Open
yocontra opened this issue Apr 29, 2013 · 1 comment
Open

CSS Transform Support #6

yocontra opened this issue Apr 29, 2013 · 1 comment

Comments

@yocontra
Copy link

I'm using isotope so the actual position of the element before the transform is in the upper left corner. When I select the text on the element after the transform the highlight appears in the upper left corner even though on-screen the element is somewhere else.

@yocontra
Copy link
Author

Tinkered and replacing getScreenPosition with this

function getScreenPosition( node ) {
    var rect = node.getBoundingClientRect();
    return { x: rect.left, y: rect.bottom-rect.height };
  }

seemed to fix the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant