Fixed so that the position of popovers isn't outside of the view.

Fixes the issue https://github.com/driftyco/ionic/issues/2355
Still needs some kind of dynamic height though.