Hey Guys, I''m having trouble with getting my draggables to go over the top of other items on my page. For instance, if I drag an icon from ''lower'' in the page to a ''higher'' point then it slides underneath it visually. I have set the z-index to a very high number and that doesn''t seem to have any effect. Are there other things I need to do (or don''t do) to make this play nicely? This happens in both Firefox and IE. Cheers, Marty
Hi Marty, Don''t know if this might be your problem, but you might make sure that you don''t have overflow:hidden turned on in your containing element. Mike On 10/20/05, Marty Haught <marty-3oG64GCJVfFgGdypvdXH1w@public.gmane.org> wrote:> > Hey Guys, > > I''m having trouble with getting my draggables to go over the top of > other items on my page. For instance, if I drag an icon from ''lower'' in > the page to a ''higher'' point then it slides underneath it visually. I > have set the z-index to a very high number and that doesn''t seem to have > any effect. Are there other things I need to do (or don''t do) to make > this play nicely? This happens in both Firefox and IE. > > Cheers, > Marty > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Michael Burton wrote:> Hi Marty, > > Don''t know if this might be your problem, but you might make sure that > you don''t have overflow:hidden turned on in your containing element.Thanks Mike, I definitley have a div with overflow: hidden. Does this mean I''m hosed? Any workarounds? Cheers, Marty
I posted a patch on the 16th ([Rails-spinoffs] Re: Draggables and overflow div''s revisited) that allows the draggable to temporarily bind to the body instead of its parent (the overflow:hidden). Give a shout if you have any problems with it. On 10/20/05, Marty Haught <marty-3oG64GCJVfFgGdypvdXH1w@public.gmane.org> wrote:> Michael Burton wrote: > > > Hi Marty, > > > > Don''t know if this might be your problem, but you might make sure that > > you don''t have overflow:hidden turned on in your containing element. > > > Thanks Mike, > > I definitley have a div with overflow: hidden. Does this mean I''m > hosed? Any workarounds? > > Cheers, > Marty > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >
keep in mind z-index only applies to positioned elements, i''ve made that mistake before. :) Marty Haught wrote:> Hey Guys, > > I''m having trouble with getting my draggables to go over the top of > other items on my page. For instance, if I drag an icon from ''lower'' > in the page to a ''higher'' point then it slides underneath it > visually. I have set the z-index to a very high number and that > doesn''t seem to have any effect. Are there other things I need to do > (or don''t do) to make this play nicely? This happens in both Firefox > and IE. > > Cheers, > Marty > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > >