1

Using ajaxcontroltoolkit.as my horror film.

HTMLEditorExtender stays its prerendered width as it is even if I resize the Web Browser

it doesnt detect width resizements:Stays as how it is.

and need a full refresh of browser (F5) makes HTMLEditorExtender to re calcluate its width.

so.

is there a standart way to fix this problem ? otherwise I will use jquery to slap it.or remove this horror control.

<asp:TextBox ID="tbEditor" runat="server"
            TextMode="MultiLine" Rows="10" style="width:100%">
</asp:TextBox>
        <asp:HtmlEditorExtender ID="tbEditor_HtmlEditorExtender" runat="server" 
            Enabled="True" TargetControlID="tbEditor">
        </asp:HtmlEditorExtender>
4

1 に答える 1

3

CSS ルール

.containerClass .ajax__html_editor_extender_container
        {
            width: 100% !important;/*important is really important at here*/
        }

および周囲の div、修正された問題。

<div class="containerClass">
            <asp:TextBox ID="tbEditor" runat="server"
            TextMode="MultiLine" Rows="10" style="width:100%">
</asp:TextBox>
        <asp:HtmlEditorExtender ID="tbEditor_HtmlEditorExtender" runat="server" 
            Enabled="True" TargetControlID="tbEditor">
        </asp:HtmlEditorExtender>
        </div>

私の問題を修正しました。これが誰かにも役立つことを願っています。

于 2013-03-10T09:19:55.327 に答える