I am working on a bootstrap list-group with a vertical scrollbar and fixed height. The issue I am facing is that the active item is selected programmatically during group creation, but it ends up being out of view when the list is displayed.
Is there a way to scroll the list programmatically using Javascript so that the active item becomes visible within the displayed items range?
<div class="panel-body list-group" style="height:200px; overflow-y:scroll">
<a href="#" class="list-group-item ">REVOK1.1</a>
<a href="#" class="list-group-item ">REVOK1.2</a>
<a href="#" class="list-group-item ">REVOK1.4</a>
<a href="#" class="list-group-item ">REVOK1.5</a>
<a href="#" class="list-group-item ">REVOK1.6</a>
<a href="#" class="list-group-item active">REVOK1.7</a>
</div>