Aver
10 Jul 2007, 12:03 PM
Can someone please look at this and tell me if this is in fact a bug.. I am using Ext 1.1 Beta 2
and the problem here is that the trigger image appears on the right hand side of the column border.
<head>
<title>Untitled Page</title>
<link rel="stylesheet" type="text/css" href="ext/resources/css/ext-all.css" />
<script src="ext/adapter/ext/ext-base.js" type="text/javascript"></script>
<script src="ext/ext-all.js" type="text/javascript"></script>
<script type="text/javascript">
Ext.onReady(function()
{
var dp = new Ext.form.DateField();
dp.render('test');
});
</script>
</head>
<body>
<table style="width:500px;border:solid 1px black;height:100px;">
<tr>
<td style="width:40%;border:solid 1px black;">a
</td>
<td style="width:60%;border:solid 1px black;text-align:right;vertical-align:middle;">
<div id="test" style="text-align:right;float:right;">
</div>
</td>
</tr>
</table>
</body>
</html>
I can fix the above by changing the following in the ext-all.css
ext-all.css (line 488)
.x-form-field-wrap .x-form-trigger {background:transparent url(../images/default/form/trigger.gif) no-repeat scroll 0pt;
border-color:-moz-use-text-color -moz-use-text-color #B5B8C8;
border-style:none none solid;
border-width:0pt 0pt 1px;
cursor:pointer;
height:21px;
position:relative; ** Changed to relative from absolute
top:0pt;
width:17px;
}
ext-all.css (line 433)
.x-form-text {
height:22px;
line-height:18px;
vertical-align:top; -- Changed to TOP from middle
}
and the problem here is that the trigger image appears on the right hand side of the column border.
<head>
<title>Untitled Page</title>
<link rel="stylesheet" type="text/css" href="ext/resources/css/ext-all.css" />
<script src="ext/adapter/ext/ext-base.js" type="text/javascript"></script>
<script src="ext/ext-all.js" type="text/javascript"></script>
<script type="text/javascript">
Ext.onReady(function()
{
var dp = new Ext.form.DateField();
dp.render('test');
});
</script>
</head>
<body>
<table style="width:500px;border:solid 1px black;height:100px;">
<tr>
<td style="width:40%;border:solid 1px black;">a
</td>
<td style="width:60%;border:solid 1px black;text-align:right;vertical-align:middle;">
<div id="test" style="text-align:right;float:right;">
</div>
</td>
</tr>
</table>
</body>
</html>
I can fix the above by changing the following in the ext-all.css
ext-all.css (line 488)
.x-form-field-wrap .x-form-trigger {background:transparent url(../images/default/form/trigger.gif) no-repeat scroll 0pt;
border-color:-moz-use-text-color -moz-use-text-color #B5B8C8;
border-style:none none solid;
border-width:0pt 0pt 1px;
cursor:pointer;
height:21px;
position:relative; ** Changed to relative from absolute
top:0pt;
width:17px;
}
ext-all.css (line 433)
.x-form-text {
height:22px;
line-height:18px;
vertical-align:top; -- Changed to TOP from middle
}