function getDimensions() {
          return {
            width: gridUtil.elementWidth($elm),
            height: gridUtil.elementHeight($elm)
          };
        }
@ngdoc directive
 @name ui.grid.autoResize.directive:uiGridAutoResize
 @element div
 @restrict A

 @description Stacks on top of the ui-grid directive and
 adds the a watch to the grid's height and width which refreshes
 the grid content whenever its dimensions change.