src/main/javascript/scroll/floatz.scroll.scroller.js
/**
	 * Get size of scroll container viewport.
	 * @returns {number} Scroll container viewport size in px
	 */
Get size of scroll container viewport.
@returns {number} Scroll container viewport size in px
Get size of scroll container viewport . @returns { number } Scroll container viewport size in px
viewportSize() {
		if (this.orientation() === Orientation.VERTICAL) {
			if (DOM.isWindow(this._container)) {
				return this._container.innerHeight;
			} else {
				return this._container.getBoundingClientRect().height;
			}
		} else {
			if (DOM.isWindow(this._container)) {
				return this._container.innerWidth;
			} else {
				return this._container.getBoundingClientRect().width;
			}
		}
	}
viewportSize ( ) { if ( this . orientation ( ) === Orientation . VERTICAL ) { if ( DOM . isWindow ( this . _container ) ) { return this . _container . innerHeight ; } else { return this . _container . getBoundingClientRect ( ) . height ; } } else { if ( DOM . isWindow ( this . _container ) ) { return this . _container . innerWidth ; } else { return this . _container . getBoundingClientRect ( ) . width ; } } }
Get size of scroll container viewport.
Get size of scroll container viewport .