Search bar dropdown offset should not go past search bar input

Summary

The search bar dropdown offset should not go past search bar input (reproducible on master). This affects both mobile and desktop. Though it is less likely to occur on desktop.

Steps to reproduce

  1. Go to issues page
  2. Input a lot of filters until the filter text exceeds the search bar input width

Expected behavior

The dropdown should lock to the right of the search bar input

Actual behavior

The dropdown offset continues pass the search bar input which makes it go off screen after a certain number of values

Relevant logs and/or screenshots

2017-01-12_15.53.37