} else {
            if (target.left - this.width - spacing <= winPos.left) {
                place[0] = 'right';
            } else if (target.right + this.width + spacing >= winPos.right) {
                place[0] = 'left';