title: ng-repeat overflows vertically
body: <p>I currently have an Angular application and my ng-repeat list is overflowing its container vertically. Here is a picture of the problem:</p>
  
  <p><a href="https://i.stack.imgur.com/5jMWF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5jMWF.png" alt="ng-repeat vertical overflow"></a></p>
  
  <p>As you can see the list is overflowing its container at the bottom. I would like the list to be contained in its container and a vertical scroll bar to show up when there is overflow.</p>
  
  <p>I have tried using <code>overflow:scroll</code> and <code>overflow:auto</code> css on the div containing the list but nothing seems to work. The scrollbars do show up around the list but it doesn't limit the list to the height of its container. Here is my code, the code that makes the list is towards the bottom:</p>
  
  <pre><code>&lt;div style="height: 90%"&gt;
      &lt;h2&gt;Foods and Meals&lt;/h2&gt;
      &lt;span class="glyphicon bg-fade"&gt;&lt;/span&gt;
      &lt;div class="jumbotron" id="foodJumbotron" style="height: 100%"&gt;
          &lt;div class="container" style="height: 100%"&gt;
              &lt;div class="row" style="height:100%"&gt;
                  &lt;div class="col-xs-6" style="height:100%"&gt;
                      &lt;ul class="nav nav-tabs" role="tablist"&gt;
                          &lt;li class="active"&gt;&lt;a data-target="#foodsTab" role="tab" data-toggle="tab"&gt;Foods&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a data-target="#myFoodsTab" role="tab" data-toggle="tab"&gt;My
                              Foods&lt;/a&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;a data-target="#myMealsTab" role="tab" data-toggle="tab"&gt;My
                              Meals&lt;/a&gt;&lt;/li&gt;
                      &lt;/ul&gt;
                      &lt;div class="tab-content" style="height:100%"&gt;
                          &lt;!-------------&gt;
                          &lt;!--FOODS TAB--&gt;
                          &lt;!-------------&gt;
                          &lt;div id="foodsTab" class="tab-pane fade active in" style="max-height:95%" ng-controller="FoodsCtrl"&gt;
                              &lt;form role="from" class="form-inline row list-group-item"&gt;
                                  &lt;div style="width:100%"&gt;
                                      &lt;span class="glyphicon glyphicon-search" style="margin-left: 0"&gt;&lt;/span&gt;
  
                                      &lt;input type="text" class="form-control " style="width:60%; margin-left: 2%"
                                             id="searchFoods"
                                             ng-model="search"
                                             placeholder="Search food database..."/&gt;
  
                                      &lt;div class="btn-group"&gt;
                                          &lt;button type="submit" ladda="submitting" data-style="slide-right"
                                                  id="foodsTabSearch"
                                                  class="btn btn-primary btn-outline btn-sm btn-rounded"&gt;Search
                                          &lt;/button&gt;
                                          &lt;a class="btn btn-primary btn-outline btn-sm btn-rounded"
                                             ng-click="filter.changeState()"&gt;Filter&lt;/a&gt;
                                      &lt;/div&gt;
                                  &lt;/div&gt;
                              &lt;/form&gt;
                              &lt;div ng-show="filter.state" class="row" style="margin-top:4%;"&gt;
                                  &lt;div class="form-group "&gt;
                                      &lt;input type="text" class="form-control" id="filterFoods"
                                             ng-model="filter.value"
                                             placeholder="Filter results..."/&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                              &lt;div class="list-group-item row gt-header-colors"&gt;
                                  &lt;div class="col-xs-4" ng-click="sort.doSort('name')" style="text-align: left"&gt;
                                      Name
                                      &lt;span ng-show="sort.state.name == 'name'"
                                            class="glyphicon glyphicon-resize-small glyphicon-sort-by-alphabet"&gt;&lt;/span&gt;
                                      &lt;span ng-show="sort.state.name == '-name'"
                                            class="glyphicon glyphicon-sort-by-alphabet-alt"&gt;&lt;/span&gt;
                                  &lt;/div&gt;
                                  &lt;div class="col-xs-2" ng-click="sort.doSort('cal')"&gt;Cal
                                      &lt;span ng-show="sort.state.cal == 'cal'"
                                            class="glyphicon glyphicon-sort-by-attributes"&gt;&lt;/span&gt;
                                      &lt;span ng-show="sort.state.cal == '-cal'"
                                            class="glyphicon glyphicon-sort-by-attributes-alt"&gt;&lt;/span&gt;
                                  &lt;/div&gt;
                                  &lt;div class="col-xs-2" ng-click="sort.doSort('pro')"&gt;Pro
                                      &lt;span ng-show="sort.state.pro == 'pro'"
                                            class="glyphicon glyphicon-sort-by-attributes"&gt;&lt;/span&gt;
                                      &lt;span ng-show="sort.state.pro == '-pro'"
                                            class="glyphicon glyphicon-sort-by-attributes-alt"&gt;&lt;/span&gt;
                                  &lt;/div&gt;
  
                                  &lt;div class="col-xs-2" ng-click="sort.doSort('carb')"&gt;Carb
                                      &lt;span ng-show="sort.state.carb == 'carb'"
                                            class="glyphicon glyphicon-sort-by-attributes"&gt;&lt;/span&gt;
                                      &lt;span ng-show="sort.state.carb == '-carb'"
                                            class="glyphicon glyphicon-sort-by-attributes-alt"&gt;&lt;/span&gt;
                                  &lt;/div&gt;
                                  &lt;div class="col-xs-2" ng-click="sort.doSort('fat')"&gt;Fat
                                      &lt;span ng-show="sort.state.fat == 'fat'"
                                            class="glyphicon glyphicon-sort-by-attributes"&gt;&lt;/span&gt;
                                      &lt;span ng-show="sort.state.fat == '-fat'"
                                            class="glyphicon glyphicon-sort-by-attributes-alt"&gt;&lt;/span&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                              &lt;!--------------------------------------&gt;
                              &lt;!--HERE'S THE LIST THAT'S OVERFLOWING--&gt;
                              &lt;!--------------------------------------&gt;
                              &lt;div class="" id="foodsList" ng-style="{'max-height':'60%'}"&gt;
                                  &lt;div class="gt-list-group-item gt-draggable"
                                       ng-repeat="food in filteredFoods = (FoodsService.foods | regexFilterNoCase:(filter.value == '' ?
                                          '' : '\\b'+filter.value) | orderBy: sort.state.current) track by $index"
                                       ng-style="{'background-color': food == FoodsService.selectedFood ? 'lightblue' : ''}"
                                       ng-mousedown="FoodsService.selectedFood = food"&gt;
                                      &lt;div class="col-xs-4" style="text-align: left"&gt;{{food.name}}&lt;/div&gt;
                                      &lt;div class="col-xs-2"&gt;{{food.cal}}&lt;/div&gt;
                                      &lt;div class="col-xs-2"&gt;{{food.pro}}&lt;/div&gt;
                                      &lt;div class="col-xs-2"&gt;{{food.carb}}&lt;/div&gt;
                                      &lt;div class="col-xs-2"&gt;{{food.fat}}&lt;/div&gt;
                                  &lt;/div&gt;
                                  &lt;div class="gt-list-group-item" ng-show="filteredFoods.length == 0"
                                       ng-style="{'text-align':'center'}"&gt;
                                      &lt;div class="col-xs-12"&gt;No foods here!&lt;/div&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>EDIT</strong></p>
  
  <p>Here are my custom css classes. They are actually in a less file but the only less attribute I use is extend. Everything else is basic css.</p>
  
  <pre><code>.gt-appfront-error:extend(.help-block all) {
    color: #ffff00;
    text-align: left;
    font-size: large
  }
  
  .gt-list-item {
    font-size: 150%;
  }
  
  .gt-header-colors {
    background-color: #3ca2e0;
    color: #FFF
  }
  
  /*Verticly align div*/
  .gt-outer {
    display: table;
    //position: absolute;
    height: 100%;
    width: 100%;
  }
  
  .gt-middle {
    display: table-cell;
    vertical-align: middle;
  }
  
  .gt-inner {
    margin-left: auto;
    margin-right: auto;
  }
  
  .gt-list-group-item {
    &amp;:extend(.row all);
    &amp;:extend(.list-group-item all);
    border-color: darkgray;
  }
  
  .gt-list-group-item:hover {
    background-color: #d2e9f4;
  }
  
  .gt-draggable {
    cursor: pointer;
  }
  
  .gt-droppable {
    border-width: 5%;
    border-style: dashed;
    border-color: #ccc;
  }
  
  .gt-active-droppable {
    border-color: #3ca2e0;
  }
  
  /* Tab Navigation */
  .nav-tabs {
    margin: 0;
    padding: 0;
    border: 0;
  }
  
  .nav-tabs &gt; li &gt; a {
    background: #DADADA;
    border-radius: 0;
    cursor: pointer;
    color: #555555;
    margin-bottom: 0px;
    box-shadow: inset 0 -8px 7px -9px rgba(0, 0, 0, .4);
  }
  
  .nav-tabs &gt; li &gt; a:hover {
    background-color: lightblue !important;
  }
  
  .nav-tabs &gt; li.active &gt; a,
  .nav-tabs &gt; li.active &gt; a:hover {
    background: white !important;
    border-radius: 5%;
    border-width: 2px;
    box-shadow: inset 0 0 0 0 rgba(0, 0, 0, .4);
  }
  
  /* Tab Content */
  .tab-pane {
    background: white;
    box-shadow: 0 0 4px rgba(0, 0, 0, .4);
    border-radius: 0% 2% 2% 2%;
    text-align: center;
    padding: 5% 6% 1% 6%;
    margin-top: 0px;
    margin-left: 2px;
  }
  
  //.animate-show.ng-hide-add {
  //  animation: fadeOut 0.5s ease !important;
  //}
  
  .animate-show.ng-hide-remove {
    animation: fadeIn 0.3s ease !important;
  }
  </code></pre>
  
  <p>Any help would be greatly appreciated.</p>