Opened 12 years ago

Last modified 12 years ago

#1162 closed defect

Color Picker not position correctly in a div that has scrolling [patch] — at Version 1

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

Description (last modified by gogo)

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 (1)

comment:1 Changed 12 years ago by gogo

  • Description modified (diff)
  • Summary changed from Color Picker not position correctly in a div that has scrolling to Color Picker not position correctly in a div that has scrolling [patch]
Note: See TracTickets for help on using tickets.