Changeset 12454

Show
Ignore:
Timestamp:
02/14/08 19:56:11 (11 months ago)
Author:
bill
Message:

Fixes #5857, #5860: dojo.coords() wasn't accounting for borders an ancestor nodes (safari bug only) !strict

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dojo/trunk/_base/html.js

    r12379 r12454  
    919919                                        var t = curnode.offsetTop; 
    920920                                        ret.y += isNaN(t) ? 0 : t; 
     921                                        if(dojo.isSafari && curnode != node){ 
     922                                                var cs = dojo.getComputedStyle(curnode); 
     923                                                ret.x += dojo._toPixelValue(curnode, cs.borderLeftWidth); 
     924                                                ret.y += dojo._toPixelValue(curnode, cs.borderTopWidth); 
     925                                        } 
    921926                                        curnode = curnode.offsetParent; 
    922927                                }while((curnode != endNode) && curnode);