Jerod Venema
2005-Dec-21 00:14 UTC
IE/CSS issue using Sortables....but only on the first drag
OK, I''m in need of help :) I''ve got a bug in IE (whoa!) that I can''t figure out. I think its CSS-related, but I sure can''t figure out what the problem is. Go here: http://jerod.ontasksoftware.com/demo/index.php and drag one of the items in the center listbox. In FF, it works beautifully. In IE6, it shoots off to the left...but ONLY once. After dragging/dropping once, its fine. So, some property that gets set after the drop event seems to fix it...but I can''t figure out what that property is! Any ideas? Thanks! -Jerod
Jerod Venema
2005-Dec-21 00:34 UTC
Re: IE/CSS issue using Sortables....but only on the first drag
And naturally...now I figure it out. <sigh> Apparently I have to define an inline "height" element for IE. I had tried it with an external CSS file...didn''t work. As soon as I put the inline style in place, I was good to go. Is this documented somehwere, or should this be considered a bug? I''m not sure at exactly what point the problem shows up...those divs are fairly deeply nested in some pretty rough outer divs....but its a PITA to figure out. -Jerod
Nicolas
2005-Dec-21 09:36 UTC
Re: Re: IE/CSS issue using Sortables....but only on the first drag
Lots of problem in IE can be fixed by switching to layout mode (see http://www.satzansatz.de/cssd/onhavinglayout.html or http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/haslayout.asp ). And setting a inline width to an element make it switch to layout mode, so it may be that. On 12/21/05, Jerod Venema <jvenema-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > And naturally...now I figure it out. <sigh> Apparently I have to define > an inline "height" element for IE. I had tried it with an external CSS > file...didn''t work. As soon as I put the inline style in place, I was > good to go. > > Is this documented somehwere, or should this be considered a bug? I''m > not sure at exactly what point the problem shows up...those divs are > fairly deeply nested in some pretty rough outer divs....but its a PITA > to figure out. > > -Jerod > > _______________________________________________ > 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
Jerod Venema
2005-Dec-21 13:50 UTC
Re: Re: IE/CSS issue using Sortables....but only on the first drag
Excellent, thanks for the heads up. On 12/21/05, Nicolas <scalpmail-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Lots of problem in IE can be fixed by switching to layout mode (see > http://www.satzansatz.de/cssd/onhavinglayout.html or > http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/haslayout.asp > ). > > And setting a inline width to an element make it switch to layout mode, so > it may be that. > > On 12/21/05, Jerod Venema <jvenema-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > And naturally...now I figure it out. <sigh> Apparently I have to define > > an inline "height" element for IE. I had tried it with an external CSS > > file...didn''t work. As soon as I put the inline style in place, I was > > good to go. > > > > Is this documented somehwere, or should this be considered a bug? I''m > > not sure at exactly what point the problem shows up...those divs are > > fairly deeply nested in some pretty rough outer divs....but its a PITA > > to figure out. > > > > -Jerod > > > > _______________________________________________ > > 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 > > >_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs