Loading ...
Sorry, an error occurred while loading the content.

Why does YAHOO.util.Dom.getRegion have 2px offset in both IE 6 and 7?

Expand Messages
  • jingceawlin
    I want to use YAHOO.util.Dom.getRegion to get the accurate position of elements on the page. It works just fine in Mozilla, opera and safari. But in IE 6 and
    Message 1 of 1 , Nov 29, 2007
    • 0 Attachment
      I want to use YAHOO.util.Dom.getRegion to get the accurate position of
      elements on the page. It works just fine in Mozilla, opera and safari.
      But in IE 6 and 7, I have to subtract 2px from the region.top and
      region.left to get the real position. Has anybody come across the same
      problem before?
    Your message has been successfully submitted and would be delivered to recipients shortly.