Ticket #1162 (closed defect: worksforme)

Opened 5 years ago

Last modified 5 years ago

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

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

Changed 5 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]

Changed 5 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?

Changed 5 years ago by ray

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