Ajax Auto Complete Extender IE9 wrong display positon inside iframe

ぐ巨炮叔叔 提交于 2020-01-24 12:46:05

问题


Inside my project I am using the Ajax Auto Complete Extender v2.0.50727 and it works fine for all textboxes in IE8, Opera, and Chrome, but when it comes to IE9 inside iframes its display position is totally giving me headaches. Instead of appearing just below the textbox, it appears 100px below, like here. The CSS class I am using is:

<asp:TextBox ID="txtAddCriteria" runat="server" MaxLength="100" Width="325px" CssClass="TextInput"></asp:TextBox>
<ajaxToolkit:AutoCompleteExtender runat="server" ID="aceCriteria" TargetControlID="txtAddCriteria"                                           ServiceMethod="GetCriteriaList4AutoCompleteExtender" ServicePath="MyWebService.asmx" MinimumPrefixLength="1"                                                CompletionInterval="100" EnableCaching="true" ContextKey="0" UseContextKey="true" CompletionListCssClass="AutoExtender" />

.AutoExtender
{
   font-family: Verdana, Helvetica, sans-serif; 
   font-size: .8em;
   margin : 0px !important;
   font-weight: normal; 
   border:solid 1px #006699;
   line-height:20px;
   padding:0px;
   background-color:White;
}

This happens to me only inside iframes in IE9. Is there any workaround? Many thanks!

来源:https://stackoverflow.com/questions/16416573/ajax-auto-complete-extender-ie9-wrong-display-positon-inside-iframe

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