[Rails-spinoffs] Re: Jumping Elements When Using Effect.SlideDown in Script.aculo.us

2007-02-21 Thread Peter Jones
On Feb 20, 4:38 pm, Tom Gregory [EMAIL PROTECTED] wrote: There's a Prototype function Element.getHeight. =) I misread the original response from Marius. Is the only solution to set a fixed height on the element? Is there a way to get the browser to calculate this height by itself, maybe by

[Rails-spinoffs] Re: Jumping Elements When Using Effect.SlideDown in Script.aculo.us

2007-02-21 Thread Thomas Fuchs
These functions use the calculated height in pixels, that the browser provides, not CSS heights/widths. What possibly might work is: var height = $('element').show().getHeight(); $('element').hide(); There shouldn't be any flickering when doing this, and you should get the height that the

[Rails-spinoffs] Re: Jumping Elements When Using Effect.SlideDown in Script.aculo.us

2007-02-21 Thread Marius Feraru
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter Jones wrote: On Feb 20, 4:38 pm, Tom Gregory [EMAIL PROTECTED] wrote: There's a Prototype function Element.getHeight. =) I misread the original response from Marius. No, you got it right :) Tom had good reasons to suggest using Element's

[Rails-spinoffs] Re: Jumping Elements When Using Effect.SlideDown in Script.aculo.us

2007-02-21 Thread Colin Mollenhour
Are there *any* possible fixes for these specific cases? I am trying to use this with tooltips and it works great in all cases in FF so far and most in IE, but in one case in IE I have a divformtableother stuff and it only sizes it correctly for the button elements (contained in last row of

[Rails-spinoffs] Re: Jumping Elements When Using Effect.SlideDown in Script.aculo.us

2007-02-20 Thread Marius Feraru
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter Jones wrote: http://pmade.com/distfiles/slidedown.html When you click the test button, the effect will run, but at the very end the final paragraph will jump in instead of being part of the slide animation. I'm not sure what I'm doing

[Rails-spinoffs] Re: Jumping Elements When Using Effect.SlideDown in Script.aculo.us

2007-02-20 Thread Peter Jones
On Feb 20, 3:18 pm, Marius Feraru [EMAIL PROTECTED] wrote: To cure it, you'll have to enhance your click handler such as test-effect's height is already known *before* instantiating that SlideDown effect (TMTE, choose whatever suits you - accordingly to your real layout). Do you have a

[Rails-spinoffs] Re: Jumping Elements When Using Effect.SlideDown in Script.aculo.us

2007-02-20 Thread Tom Gregory
There's a Prototype function Element.getHeight. =) http://prototypejs.org/api/element#method-getheight TAG On Feb 20, 2007, at 4:17 PM, Peter Jones wrote: On Feb 20, 3:18 pm, Marius Feraru [EMAIL PROTECTED] wrote: To cure it, you'll have to enhance your click handler such as