PDA

View Full Version : TextField width problem in IE....



sam.arulprakash
29 Jun 2010, 9:33 PM
Hi all,
I have a textField (having width=175).

After the page is rendering,
I have measured the width of the textField by using paint .NET.....
In firefox textField's Width is '175px',But
in IE the same textField width is '168px'.

I dont know why it is happening like this?..

I have attached my sample code.

Please post your suggestions.

Thanks in advance.



<table id="Table1" runat="server" style="position:relative;" border="0" cellpadding="0" cellspacing="0">
<tr>
<td id="Column1" runat="server">
</td>
</tr>
</table>
<script language="javascript" type="text/javascript">
var txtReportName_txt;
Ext.onReady(function()
{
txtReportName_txt = new Ext.form.TextField

({
id: 'txtReportName_txt_TextBox',
width:175,
height:23,
renderTo:'Column1'
});
});


</script>


Thanks and Regards,
Arul Prakash.M