SlideDrag = function(opts) {
    this.dragThresholdX = opts.dragThresholdX || 10;
    this.el = opts.el;
  }
@ngdoc method
@name ionicBar#align
@description
Aligns the title text with the buttons in the bar
so that the title size is maximized and aligned correctly
as much as possible.
@param {string=} direction Which direction to align the title towards.
Available: 'left', 'right', 'center'. Default: 'center'.