src/wrappers/dimension.js
function (height, options) {
    if (numberIsInteger(height) && height < 1) {
      throw VideomailError.create('Passed limit-height argument cannot be less than 1!', options)
    } else {
      const limitedHeight = Math.min(
        height,
        // document.body.scrollHeight,
        document.documentElement.clientHeight
      )

      if (limitedHeight < 1) {
        throw VideomailError.create('Limited height cannot be less than 1!', options)
      } else {
        return limitedHeight
      }
    }
  }
function (height, options) {
    if (numberIsInteger(height) && height < 1) {
      throw VideomailError.create('Passed limit-height argument cannot be less than 1!', options)
    } else {
      const limitedHeight = Math.min(
        height,
        // document.body.scrollHeight,
        document.documentElement.clientHeight
      )

      if (limitedHeight < 1) {
        throw VideomailError.create('Limited height cannot be less than 1!', options)
      } else {
        return limitedHeight
      }
    }
  }
function ( height , options ) { if ( numberIsInteger ( height ) && height < 1 ) { throw VideomailError . create ( 'Passed limit-height argument cannot be less than 1!' , options ) } else { const limitedHeight = Math . min ( height , // document.body.scrollHeight, document . documentElement . clientHeight ) if ( limitedHeight < 1 ) { throw VideomailError . create ( 'Limited height cannot be less than 1!' , options ) } else { return limitedHeight } } }
this is difficult to compute and is not entirely correct. but good enough for now to ensure some stability.
this is difficult to compute and is not entirely correct . but good enough for now to ensure some stability .