I have a sidebar on a webpage I manage that displays a list of responders to an emergency call when a member of that departments says they're going to that call. While the code works fine to update the view on the site to include new responders, if too many are loaded the modals being created go off the screen. I want to write a script to automatically scroll up and down the list of responders, but the div they're inside of isn't expanding causing a scroll bar to occur even when the content goes offscreen. I imagine I'm missing something with my css but have looked over this so many times I've gone blind to what could be wrong. Included below is the snippet of HTML and all applicable CSS. Let me know if you need anything more.
(Also, if there's a novel way to scroll among items in an ng-list automatically, I haven't been able to find it).
HTML:
<div class="row full-height">
<div class="col-md-5 col-lg-4 full-height">
<div>
<h1 class="job-text">
<span class="callStatusIcon {{call.type.type}}"></span>
<span style="font-weight: bold"> {{call.cadDept}}</span> - <span class="text-primary">{{call.type._id}}</span> - {{call.description}}
</h1>
<h2 class="job-text" style="'font-size: 250%">
<p style="font-weight: bold">{{call.addr}}</p>
<p>{{call.timeStamp.sec | timeFormat:'HH:mm'}} hrs</p>
</h2>
<hr/>
</div>
<div ng-switch-when="true" class="full-height">
<div class="list-group">
<div class="col-inline-md col-inline-spacing" ng-repeat="responder in call.response">
<div du-scrollspy="list-group-item" class="list-group-item">
<h4 class="list-group-item-heading"><strong>{{responder.name}}</strong> - <strong ng-class="responder.response === 'No'?'text-primary':'text-success'">{{responder.response}}</strong></h4>
<div class="list-group-item-content">{{responder.distance?(responder.distance | metersToMiles) + ' miles away | ':''}}{{responder.time.sec | timeFromNow}}</div>
</div>
</div>
</div>
</div>
</div>
CSS:
div {
display: block;
}
.full-height {
height: 100%;
}
.row {
margin-left: -15px;
margin-right: -15px;
}
@media (min-width: 1200px)
.col-lg-4 {
width: 33.33333333%;
float: left;
}
@media (min-width: 992px)
.col-md-5 {
width: 41.66666667%;
}
@media (min-width: 992px)
.col-md-5
float: left;
}
.list-group {
overflow-y: scroll;
margin-bottom: 20px;
padding-left: 0;
}
.col-inline-spacing {
margin-left: 10px;
margin-bottom: 10px;
}
.list-group-item {
position: relative;
display: block;
padding: 10px 15px;
margin-bottom: -1px;
background-color: #ffffff;
border: 1px solid #dddddd;
}
.list-group-item-heading {
margin-top: 0;
margin-bottom: 5px;
}