The CreatorCon Call for Content is officially open! Get started here.

Bug? Odd behavior with automatically moving view to top of [sc_category] page when a category is chosen?

patricklatella
Mega Sage

Hi all,

I'm seeing odd behavior with the "SC Categories" widget...guessing this is a quick fix?  I have a client whose got 21 categories in their catalog for their portal.  When I click on the first 11 that are listed in the OOB "SC Categories" widget, the page snaps back to the top of the page so you see the top row of catalog items in that category.  But for the 12th category down and through the rest of the list it doesn't snap back to the top, it stays where you scrolled down to in order to see the lower categories...I then have to manually scroll back to the top.  Any idea what might be causing this?

 

1 ACCEPTED SOLUTION

patricklatella
Mega Sage

I raised a HI ticket for this issue and their fix was to import the most recent version of the "SC Categories" widget into our instance and the issue is resolved.  I set the "Number of categories to load" to 25 in the instance options and it's working correctly...when you click on one of the categories that is further down in the list the page reload so the top of the visible catalog items...that is the desired behavior. 

If anyone else sees this same issue, the [sys_updated_on] for the "SC Categories" widget that the scrolling works is "4-12-2018"...so look for this version for the fix.

View solution in original post

5 REPLIES 5

Sai dinesh1
Tera Contributor

I have tried this in the Latest instance and the issue still persists

find_real_file.png

 

I got it resolved by adding the below script in SC Categories cloned widget under the client script

angular.element(document).ready(function () {
spUtil.scrollTo('.sp-scroll', 300);
});