Lost Password
Create an Account

Your username must be unique, and cannot be changed later.

We use your email address to email you a secure password and verify your account.

[Accordion] Desactivate the auto scroll when a section is opened ?

HomeForumsWink ui[Accordion] Desactivate the auto scroll when a section is opened ?

This topic has 2 voices, contains 2 replies, and was last updated by  nge 406 days ago.

Viewing 3 posts - 1 through 3 (of 3 total)
April 6, 2012 at 2:17 pm #link

nge

Hello,

Is it possible not to have the auto-scroll done when opening a new section of an accordion ?

Thanks

April 10, 2012 at 6:45 am #link

Hi,

in fact, you can’t set a property to disable the accordion’s auto-scroll. The simplest way is to comment the

scrollTo(...)

call in the method

wink.ui.layout.Accordion.Section.prototype._scroll

However, if you prefer to keep the wink code unspoiled, you may extend the

wink.ui.layout.Accordion.Section.prototype._scroll

by rewriting it without the

scrollTo(...)

Hope this helps

  • This reply was modified 406 days ago by  sylvain.
  • This reply was modified 406 days ago by  sylvain.
  • This reply was modified 406 days ago by  sylvain.
April 10, 2012 at 8:22 am #link

nge

Hello,

Yes, that helps a lot !

Thanks

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.