Announcement

Collapse
No announcement yet.

Tooltip alignment in browser

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Tooltip alignment in browser

    I can't determine the clientwidth i actually see.
    My client area is larger and has a scrollbar.

    For tooltip-panel alignment ( ~ if left+width > clientwidth then left = clientwidth - width) i would like to know the size of the client i really see.

    This is giving me the total clientwidth, not the smaller clientarea..

    var clientwidth = document.body.scrollWidth;
    hellobasic

  • #2
    Edwin, I think you want Inner width

    http://www.quirksmode.org/viewport/compatibility.html

    Comment


    • #3
      Thanks!

      It works, i seen this innerheight but i think i used it wrongly..
      By adding scrollleft value i am also able to compensate horizontal scrolling.
      hellobasic

      Comment

      Working...
      X