_addListeners() {
        // handling window resize event
        this._resizeHandler = null;
        if(this._autoResize) {
            this._resizeHandler = this.resize.bind(this, true);
            window.addEventListener("resize", this._resizeHandler, false);
        }
    }
Adds our resize event listener if needed
*