I have a drop box <div> with position:fixed at the bottom of the browser window. In cases where the web page is quite long, and I need to scroll, I can no longer drag items into the drop box because it has scrolled up along with the page. The visible drop box remains at the bottom of the page, but the ''droppable'' area moves. this issue has been documented several times but there doesn''t seem to be a solution. Has anyone encountered this before? Any solutions? V1.8.1 Prototype 1.6.0.1 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I was having the exact same problem. The way I fixed this is by adding document.viewport.getScrollOffsets()[1] to the withinIncludingScrolloffsets function in the prototypejs library. withinIncludingScrolloffsets: function(element, x, y) { var offsetcache = Element.cumulativeScrollOffset(element); this.xcomp = x + offsetcache[0] - this.deltaX; this.ycomp = y + offsetcache[1] - this.deltaY - document.viewport.getScrollOffsets()[1]; this.offset = Element.cumulativeOffset(element); return (this.ycomp >= this.offset[1] && this.ycomp < this.offset[1] + element.offsetHeight && this.xcomp >= this.offset[0] && this.xcomp < this.offset[0] + element.offsetWidth); } On Jan 10, 8:28 am, Ed209 <edleades...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I have a drop box <div> with position:fixed at the bottom of the > browser window. In cases where the web page is quite long, and I need > to scroll, I can no longer drag items into the drop box because it has > scrolled up along with the page. > > The visible drop box remains at the bottom of the page, but the > ''droppable'' area moves. this issue has been documented several times > but there doesn''t seem to be a solution. Has anyone encountered this > before? Any solutions? V1.8.1 Prototype 1.6.0.1--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, I am using Prototype JavaScript framework, version 1.5.0. And I have the same problem. your advice doesn''t help for me. any other suggestions? Thanks, Doron On Jan 13, 7:12 am, woranl <wor...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I was having the exact same problem. The way I fixed this is by adding > document.viewport.getScrollOffsets()[1] to the > withinIncludingScrolloffsets function in the prototypejs library. > > withinIncludingScrolloffsets: function(element, x, y) { > var offsetcache = Element.cumulativeScrollOffset(element); > > this.xcomp = x + offsetcache[0] - this.deltaX; > this.ycomp = y + offsetcache[1] - this.deltaY - > document.viewport.getScrollOffsets()[1]; > this.offset = Element.cumulativeOffset(element); > > return (this.ycomp >= this.offset[1] && > this.ycomp < this.offset[1] + element.offsetHeight && > this.xcomp >= this.offset[0] && > this.xcomp < this.offset[0] + element.offsetWidth); > } > > On Jan 10, 8:28 am, Ed209 <edleades...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > I have a drop box <div> with position:fixed at the bottom of the > > browser window. In cases where the web page is quite long, and I need > > toscroll, I can no longer drag items into the drop box because it has > > scrolled up along with the page. > > > The visible drop box remains at the bottom of the page, but the > > ''droppable'' area moves. this issue has been documented several times > > but there doesn''t seem to be a solution. Has anyone encountered this > > before? Any solutions? V1.8.1 Prototype 1.6.0.1- Hide quoted text - > > - Show quoted text ---~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---