if (verticalPlaces.indexOf(place[0]) !== -1) {
            if (target.top - this.height - spacing <= winPos.top) {
                place[0] = 'bottom';
            } else if (target.bottom + this.height + spacing >= winPos.bottom) {
                place[0] = 'top';