Adding your own tweaks 

$('#topic-search').data('typeahead').show = function() {
    var pos = $.extend({}, this.$element.offset(), {
      height: this.$element[0].offsetHeight,
      width: this.$element.width()
    });

    this.$menu.css({
      top: pos.top + pos.height,
      right: $(window).width() - (pos.left + pos.width + 32),
      left: 'auto'
    });

    this.$menu.show();
    this.shown = true;
    return this;
};