function getScrollPercentage(scrollPixels, scrollLength) {
      var percentage = scrollPixels / scrollLength;

      // if the percentage is greater than 1, set it to 1
      return percentage <= 1 ? percentage : 1;
    }
@ngdoc function
@name hasRightContainerColumns
@methodOf ui.grid.class:Grid
@description returns true if rightContainer has columns