[CLOSED] Problem change font size of textfield in Google Chrome

  1. #1

    [CLOSED] Problem change font size of textfield in Google Chrome

    Hi,
    when I change the font size in textfield in Google Chrome, when the page appears the text is cut to half.
    The font is corrected after first change.
    I use: Ext.Net revision 5087,
    VS 2010,
    Chrome 26.0.1410.64 m

    See my example:

    <%@ Page Language="C#" %>
     
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title></title>
    
    
        <script runat="server">
     
          protected void Page_Load(object sender, EventArgs e)
          {
            if (!Page.IsPostBack && !X.IsAjaxRequest)
            {
              this.txtF.Text = "12345";
    
    
              this.txtF.FieldStyle = "font-size: 28px !important;";
              
              this.txtF.Height = Unit.Pixel(33);
              
            }
          }
         
        </script>
        
    </head>
    <body>
        <form id="form1" runat="server">
        <ext:ResourceManager ID="ResourceManager1" runat="server" />
        
          <ext:Panel ID="pnlTest" runat="server" >
            <Items>
              <ext:TextField ID="txtF" runat="server"></ext:TextField>
            </Items>
          </ext:Panel>
    
    
        </form>
    </body>
    </html>
    Thank you

    Jimmy
    Last edited by Daniil; Apr 30, 2013 at 5:17 AM. Reason: [CLOSED]
  2. #2
    Hi Jimmy,

    Please try:
    this.txtF.FieldStyle = "font-size: 28px; line-height: 28px; height: 33px;";
  3. #3
    Hi Daniil,
    It works fine, thank you.

    Jimmy

Similar Threads

  1. [CLOSED] change button font color and size
    By Pablo_Azevedo in forum 1.x Premium Help
    Replies: 1
    Last Post: Apr 16, 2013, 9:50 PM
  2. GridPanel - Change Font Size
    By jlucid in forum 2.x Help
    Replies: 0
    Last Post: Jan 06, 2013, 1:20 AM
  3. Font Size Change
    By megang in forum 1.x Help
    Replies: 1
    Last Post: Apr 09, 2012, 11:02 AM
  4. Change font/button size
    By plykkegaard in forum 1.x Help
    Replies: 0
    Last Post: Sep 02, 2010, 4:09 PM
  5. 11px font-size in non-english in Chrome/Firefox
    By sipo in forum Feature Requests
    Replies: 0
    Last Post: Mar 31, 2009, 12:10 PM

Posting Permissions