AutoDirector forum

The AutoDirector support and advice forum

Page auto scrolls after list loads

Post Reply

Page: 1

Author Post
Member
Registered: Apr 2009
Posts: 10
As the subject says the page seems to scroll a bit after the list loads, is there something I need to change to stop this from happening?
Administrator
Registered: Apr 2008
Posts: 324
It will only scroll if your vehicle list is lower than the top 30% of the page. It needs to do that in several situations, but I agree that it can be a little awkward on page load.

I'd suggest looking for this code in client/carlist.js:

owl.Screen.ScrollToElement(setup.adnode,0,100,0,30);

Increase the "30" (the screen percentage) to prevent the scrolling.

I hope that helps.
_______________
AutoDirector administrator
Member
Registered: Apr 2009
Posts: 10
Thanks I made the changes and it seems to be corrected now.
Member
Registered: Oct 2009
Posts: 23
I changed it but it but still the same. stephenfostercars.co.uk
The car list is quite far down the page and the template html nees sorting.
Will I sort this in JS or the html of the page?
Administrator
Registered: Apr 2008
Posts: 324
Your showroom is quite a way down the page so, with a smaller browser window, you will get the scrolling. Try removing the whole statement - that will stop the scrolling, but you should test it to ensure it doesn't greatly affect functionality.
_______________
AutoDirector administrator
Member
Registered: Oct 2009
Posts: 23
Thanks thats sorted it.

Post Reply

Page: 1