0

I need the x, y coordinates of my document element in dart. I tried .clientTop and .clientLeft without success. window.screenLeft and screenTop is also important, if the window, is not maximized and is somewhere on the screen.

coordinate

Liam
  • 27,717
  • 28
  • 128
  • 190
Kronos
  • 141
  • 1
  • 11

1 Answers1

2

This is as close as I can get for the height:

num offHeight = window.screenTop + window.outerHeight - window.innerHeight;
Kronos
  • 141
  • 1
  • 11