function _calculateOOBAndPinnedTop(top, bounds, height, pin, pinned, oob) {
  if (top < bounds[1]) {
    if (pin.indexOf('top') >= 0) {
      top = bounds[1];
      pinned.push('top');
    } else {
      oob.push('top');
    }
  }

  if (top + height > bounds[3]) {
    if (pin.indexOf('bottom') >= 0) {
      top = bounds[3] - height;
      pinned.push('bottom');
    } else {
      oob.push('bottom');
    }
  }

  return top;
}
Calculates if out of bounds or pinned in the Y direction.

@param {number} top
@param {number[]} bounds Array of bounds of the format [left, top, right, bottom]
@param {number} height
@param pin
@param {string[]} pinned
@param {string[]} oob
@return {number}
@private