code: function () {
  		//if we can't fit the popup above or below the activator then forget vertical positioning
  		if (!this.initVerticalPositioning()) {
  			return false;
  		}
  
  		var clientRect = this.getBoundingRect(this.node);
  		var innerWidth = this.getViewWidth();
  
  		if (this.floating){
  			//Get the left edge delta to horizontally center the popup
  			var centeredLeft = this.activatorOffset.left + this.activatorOffset.width/2 - clientRect.width/2;
  			if (centeredLeft + clientRect.width > innerWidth) {//popup goes off right edge of the screen if centered
  				this.applyPosition({left: this.activatorOffset.left + this.activatorOffset.width - clientRect.width});
  				this.addClass('left');
  			} else if (centeredLeft < 0) {//popup goes off left edge of the screen if centered
  				this.applyPosition({left:this.activatorOffset.left});
  				this.addClass('right');
  			} else {//center the popup
  				this.applyPosition({left: centeredLeft});
  			}
  
  		} else {
  			//Get the left edge delta to horizontally center the popup
  			var centeredLeftDelta = this.activatorOffset.left + this.activatorOffset.width/2 - clientRect.left - clientRect.width/2;
  			if (clientRect.right + centeredLeftDelta > innerWidth) {//popup goes off right edge of the screen if centered
  				this.applyPosition({left: this.activatorOffset.left + this.activatorOffset.width - clientRect.right});
  				this.addRemoveClass('left', true);
  			} else if (clientRect.left + centeredLeftDelta < 0) {//popup goes off left edge of the screen if centered
  				this.addRemoveClass('right', true);
  			} else {//center the popup
  				this.applyPosition({left: centeredLeftDelta});
  			}
  		}
  
  		return true;
  	}
docs: Implements positioning rules (rule 1.b.i & rule 1.b.ii).
  
  @return {Boolean} `true` if vertical positioning is used; otherwise, `false`.
  @private