Changeset 1024 for trunk


Ignore:
Timestamp:
08/23/08 16:07:12 (11 years ago)
Author:
ray
Message:

#1266 Color Picker not positioned correctly inside scrolling <div>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/ColorPicker/ColorPicker.js

    r1001 r1024  
    372372          this.table.style.position = 'fixed'; 
    373373        } 
    374         top += e.offsetTop; 
    375         left += e.offsetLeft; 
     374        top+=e.offsetTop - e.scrollTop; 
     375        left+=e.offsetLeft - e.scrollLeft; 
     376 
    376377        e = e.offsetParent; 
    377378      } 
Note: See TracChangeset for help on using the changeset viewer.