code: function waitAndSet() {
            var i;
            var times = [0,200,400,700,1000,1500,2000];
            var len = times.length;
            for ( i = 0; i < len; i++ ) {
              $timeout(setParentHeight,times[i]);
            }
          }
docs: Wait for the content to be appended and set parent height