Opened 11 years ago

Closed 11 years ago

#1162 closed defect (worksforme)

Color Picker not position correctly in a div that has scrolling [patch]

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

comment:1 Changed 11 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]

comment:2 Changed 11 years ago by ray

Hi, I tried to reproduce your problem, but I only found that both IEs don't work at all with Xinha in a scrolling div (overflow:auto). The ColorPicker? positionened correctly. Can you explain more detailed how to reproduce what you mean or even put up a online test case?

comment:3 Changed 11 years ago by ray

  • Resolution set to worksforme
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.