Typeahead alignment Issue

℡╲_俬逩灬. 提交于 2019-12-11 08:19:33

问题


I am having alignment issue with my Typeahead control. The issue is that is goes out of my screen. I want to make it little left aligned so that it stays on my screen. Basically it should adjust it's placement according to the length of data. If length of data is more it should further shift it to left.Notice that everything that goes out of dark blue color is badly aligned.

The other issue is , I am actually displaying 3 suggestions in my Typeahead but one is getting hidden behind the blue strip. Sorry I am really new to javascript and CSS. Can someone please help me here.

<form class="navbar-form pull-right">

    <input type="text" placeholder="Search" ng-model="selected" 
         typeahead-on-select="RefreshPersonProfile($item)" 
         typeahead="suggestion for suggestion in persons($viewValue) | filter:$viewValue | limitTo:8" 
         class="form-control">

    <i class="icon-search"></i>
</form>

来源:https://stackoverflow.com/questions/22075432/typeahead-alignment-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!