I was thinking that the accordian could do one of two things. 
Assuming we have panel A, B and C stacked vertically with A currently
the 'expanded' panel and the user has clicked on B.

1) Shrink A one pixel at a time while expanding B one pixel at a time.
 When either one hits the limit, then only modify the remaining panel.
 So if A is taller than B, then B will be fully displayed while A is
still shrinking.

2) Calculate the ratio of heights between A and B and scale the
shrinking/growth accordingly.  So if A is 100px high and B 50px,
shrink A 2 pixels for every 1 pixels that B has.  However, due to
rounding we could see a 1 pixel "wobble".  The effect might also be
particularly annoying where the ratio is exaggerated -- picture a 20:1
change...

On 1/23/06, Chris Korhonen <[EMAIL PROTECTED]> wrote:
> ShOne limitation I see with the Accordian method here is that it doesn't work
> right if you have different height panels - they all take the height of the
> first panel. May have a stab at addressing this tomorrow unless someone
> knows of an easy solution?
>
> _______________________________________________
> Rails-spinoffs mailing list
> [email protected]
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
>
>
>
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to