Fokus icon indicating copy to clipboard operation
Fokus copied to clipboard

CSS Transform Support

Open yocontra opened this issue 11 years ago • 1 comments

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 avatar Apr 29 '13 20:04 yocontra

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.

yocontra avatar Apr 29 '13 20:04 yocontra