PDA

View Full Version : [CLOSED] Problem change font size of textfield in Google Chrome



xeo4.it
Apr 24, 2013, 3:53 PM
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

Daniil
Apr 24, 2013, 6:50 PM
Hi Jimmy,

Please try:

this.txtF.FieldStyle = "font-size: 28px; line-height: 28px; height: 33px;";

xeo4.it
Apr 30, 2013, 8:26 AM
Hi Daniil,
It works fine, thank you.

Jimmy