Jerod Venema wrote:

Hey everyone,

Been working with this JSTree control...modified all the "setAttribute" calls, and also swapped out some of the recursion calls, since I want it to maintain state. I've gotten to the point where it properly displays styles and collapses in FF, Opera, and IE6, and FF and Opera properly close...but once again, IE bites it. Its adding a huge padding around my first sub-group. Check it out here:

http://www.jvenema.com/treeview/tree_blinddown.html

Thoughts, anyone?

Also, I found as a result of this, a couple bugs:

1) In Opera with "BlindDown": the setStyle function in afterFinishInternal causes the second sub-group to hide. I assume its because opera doesn't give any sort of default height to their UL elements. Add this line after "var elementDimensions...."

if(oldHeight == '0px'){ oldHeight = elementDimensions.Height + 'px'; }

Dunno why those aren't combined, but that fixes it anyway.

2) SlideDown on the first group of this treeview in IE6 causes a fatal crash! Woo! Check it out here:

http://www.jvenema.com/treeview/tree_slidedown.html

I'm gonna log that one as a bug. :)

-Jerod

On 12/1/05, *Chris Lear* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    * Laurie Harper wrote (01/12/2005 15:50):
    > On 1-Dec-05, at 6:15 AM, APaella wrote:
    >> Maninder, Singh wrote:
    >>> This is not working for me (I am using IE 6.0 on WinXP).
    >>>
    >>> It works in Firefox though...
    >>
    >> I's only the css that is wrong. The + image isn't displayed but the
    >> script works.
    >
    > Unfortunately, I don't currently have an Windows box to debug that
    > problem on :-( If I had to guess, though, I bet it's related to how
    > that code is updating CSS styles; as I recall, there are some IE
    > compatibility issues in that area, which may be causing the problem.
    >
    > If anyone knows how to fix it, I'll make the appropriate updates to
    > the code...

    Use css and classes (rather than setting the style directly) will
    probably work. Then IE users can tweak the css until it works.

    Chris
    _______________________________________________
    Rails-spinoffs mailing list
    Rails-spinoffs@lists.rubyonrails.org
    <mailto:Rails-spinoffs@lists.rubyonrails.org>
    http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
    <http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs>


------------------------------------------------------------------------

_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Keep Up the good work....!

Your doing great!
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to