[CLOSED] Label setHtml bug

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] Label setHtml bug

    Support,

    here is a small bug.

    load the test screen and you can see that we set an Icon for the Label.

    as per the docs, setHtml "Sets the value of html" and should NOT affect icon. However, in this case, when we setHtml, the ICON is wiped out.

    now a simple workaround is to use setText (blah, false) but this should be fixed.

    thanks,
    /Z


    <%@ Page Language="C#" %>
    
    
    <!DOCTYPE html>
    
    
    <html>
    <head runat="server">
        <title>Test</title>
    
    
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server">
            </ext:ResourceManager>
    
    
            <h1>Label Test</h1>
    
    
            <ext:Label ID="test" runat="server" Icon="Phone" Html="test stuff" MarginSpec="0 0 0 10"/>
    
    
            <ext:Button runat="server" Text="settxt" Handler="App.test.setText('<b>234</b>');" />
            <ext:Button runat="server" Text="settxt1" Handler="App.test.setText('<b>234</b>', false);" />
            <ext:Button runat="server" Text="sethtml" Handler="App.test.setHtml('<b>234</b>');" />
            <ext:Button runat="server" Text="hide" Handler="App.test.hide();" />
            <ext:Button runat="server" Text="show" Handler="App.test.show();" />
        </form>
    </body>
    </html>
    Last edited by fabricio.murta; Mar 15, 2019 at 7:11 PM. Reason: no feedback from the user in 7+ days

Similar Threads

  1. [CLOSED] Bug in fieldcontainer when using label align top
    By Akpenob in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Jun 24, 2014, 2:24 PM
  2. HtmlEditor with label in fieldset layout bug
    By PetrSnobelt in forum 1.x Help
    Replies: 2
    Last Post: Jun 24, 2011, 10:50 AM
  3. [CLOSED] Formpanel and Label (bug?)
    By CMA in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 26, 2009, 7:26 AM
  4. label and setHTML missing?
    By Tbaseflug in forum 1.x Help
    Replies: 1
    Last Post: Apr 29, 2009, 9:24 PM
  5. [CLOSED] Help Cant set SetHtml in a panel?
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 18, 2008, 5:52 AM

Posting Permissions