Put the accordion in a container with a fixed height that is greater than the height of the tallest item in the accordion.
On Sat, Dec 13, 2008 at 3:29 PM, jbmoore (via Nabble) < [email protected]<ml-user%[email protected]> > wrote: > > Ok.. I understand what you are saying.. > > But..<smile> > > The question still is, but now reworded: How does one fix the > situation where of the page height changing (increasing) causes the > undesirable "effect" that the selected statement is scrolling up out > of sight? > > Idea: Is there a way to place an "anchor" above each statement > (toggler) and have the function like: > > function jumpToAnchor(arg_sAnchor) { > window.location.hash= arg_sAnchor; > } > > triggered.. where "arg_sAnchor" is dynamically set for each > statement..?? > > (Not familiar enough with MooTools to understand how to hack this > in...) > > Or.. do you have another suggestion..?? > > Thank you for your help.. > > John... > > On Dec 11, 3:58 pm, nutron > <anut...@...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=1653126&i=0>> > wrote: > > > This is how accordion works. If you have a big item open and you expose a > > > smaller one, the page size shrinks: > > item 1: 20px high > > item 2: 100px > > > > page height excluding either one: 200px. > > > > state 1: item 2 is hidden: page height: 220px > > state 2: item 1 is hidden: page height: 300px > > > > Because the page height changes if you are all the way at the bottom of > the > > page it will appear to scroll up, though really what is happening is that > > > the page is getting shorter. > > > > On Thu, Dec 11, 2008 at 1:44 PM, jbmoore (via Nabble) < > > ml-user+135638-1797090...@...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=1653126&i=1> > <ml-user%2b135638-1797090...@...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=1653126&i=2>> > > > > > > > > > > wrote: > > > > > Hmm... ok... It is still behaving strange for me.. > > > > > Let me be clear on the correct sequence to produce the effect. > > > > > 1) Load the page fresh. > > > 2) Scroll down so that the "Company Information" statement and table > > > has scrolled UP out of view and you can only see the "checkbox" > > > statements. (This is important, and IMO would be very likely because > > > the user will want to see all of the statements to review) > > > 3) Click the FIRST statement "We are not sure what PayPal solution is > > > best for our needs." > > > 4) For me it now scrolls UP leaving me to see only to see the bottom > > > of the exposed table. > > > > > The user has to now scroll up to see the beginning of that table and > > > that clicked statement. > > > > > I "think" what is happening is that the clicked statement scrolls UP > > > to the previously active statement which is UP out of view. This is > > > fine as a start, and makes sense, but I think there needs to be a > > > check that the "active" toggler element is moved INTO the viewport > > > at some point in the process. > > > > > If you have a chance to try this again, that would be appreciated.. > > > > > Thanks for replying.. > > > > > John.. > > > > > On Dec 10, 11:46 am, nutron <anut...@...< > http://n2.nabble.com/user/SendEmail.jtp?type=node&node=1645334&i=0>> > > > wrote: > > > > > > It looks find to me (FF3, OSX). > > > > > > On Wed, Dec 10, 2008 at 11:35 AM, jbmoore (via Nabble) < > > > > ml-user+135638-1797090...@...< > http://n2.nabble.com/user/SendEmail.jtp?type=node&node=1645334&i=1> > > > <ml-user%2b135638-1797090...@...< > http://n2.nabble.com/user/SendEmail.jtp?type=node&node=1645334&i=2>> > > > > > > > wrote: > > > > > > > Thanks for the reply... > > > > > > > I thought I posted this already, but I guess not... > > > > > > > I added a LOT of space where I thought you indicated and that does > not > > > > > seem to help.. If you wouldn't mind checking that link again you > can > > > > > see my changes and that the effect remains.. > > > > > > > John... > > > > > > > ------------------------------ > > > > > View message @ > > > > > > http://n2.nabble.com/Accordion---scrolls-up-instead-of-down-tp1636986... > > > > > > > To start a new topic under MooTools Users, email > > > > > ml-node+660466-1583815...@...< > http://n2.nabble.com/user/SendEmail.jtp?type=node&node=1645334&i=3> > > > <ml-node%2b660466-1583815...@...< > http://n2.nabble.com/user/SendEmail.jtp?type=node&node=1645334&i=4>> > > > > > > > To unsubscribe from MooTools Users, click here< (link removed) >. > > > > > > ----- > > > > The MooTools Tutorial: http://www.mootorial.comwww.mootorial.com > > > > CNET Clientside: http://clientside.cnet.comclientside.cnet.com > > > > -- > > > > View this message in context: > > >http://n2.nabble.com/Accordion---scrolls-up-instead-of-down-tp1636986... > > > > > Sent from the MooTools Users mailing list archive at Nabble.com. > > > > > ------------------------------ > > > View message @ > > >http://n2.nabble.com/Accordion---scrolls-up-instead-of-down-tp1636986... > > > > To start a new topic under MooTools Users, email > > > ml-node+660466-1583815...@...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=1653126&i=3> > <ml-node%2b660466-1583815...@...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=1653126&i=4>> > > > > To unsubscribe from MooTools Users, click here< (link removed) >. > > > > ----- > > The MooTools Tutorial: http://www.mootorial.comwww.mootorial.com > > CNET Clientside: http://clientside.cnet.comclientside.cnet.com > > -- > > View this message in context: > http://n2.nabble.com/Accordion---scrolls-up-instead-of-down-tp1636986... > > Sent from the MooTools Users mailing list archive at Nabble.com. > > > ------------------------------ > View message @ > http://n2.nabble.com/Accordion---scrolls-up-instead-of-down-tp1636986p1653126.html > To start a new topic under MooTools Users, email > [email protected]<ml-node%[email protected]> > To unsubscribe from MooTools Users, click here< (link removed) >. > > > ----- The MooTools Tutorial: http://www.mootorial.com www.mootorial.com Clientcide: http://www.clientcide.com www.clientcide.com -- View this message in context: http://n2.nabble.com/Accordion---scrolls-up-instead-of-down-tp1636986p1653133.html Sent from the MooTools Users mailing list archive at Nabble.com.
