Opened 12 years ago

Last modified 12 years ago

#1162 closed defect

Color Picker not position correctly in a div that has scrolling — at Initial Version

Reported by: guest Owned by: gogo
Priority: normal Milestone: 0.95
Component: Xinha Core Version: trunk
Severity: normal Keywords:
Cc:

Description

top and left calculation of the color picker div should take into account offsetParent scrollLeft and scrollTop. Can this make 0.95? Thanks.

366 do
367 {
368 if (e.style.position == 'fixed')
369 {
370 this.table.style.position = 'fixed';
371 }

/ modification

top+=e.offsetTop - e.scrollTop;
left+=e.offsetLeft - e.scrollLeft;

/

374 e = e.offsetParent;
375 }
376 while(e);

kngan@…

Change History (0)

Note: See TracTickets for help on using tickets.