fix for mobile accordion

check the scroll top position so that it won't be overflow when using it in mobile accordion scenario