:: Forum >>

Grid does a repaint some pixels higher

Hello,

When I try to move the mouse (or execute any other action) over my grid, it does a repaint some pixels higher. It happens when I use Firefox (1.0.7) but not with IE.
My grid is in a html table.

var grid = new AW.UI.Grid;
grid.setControlSize(222, 200);
grid.setColumnProperty("count",2);
grid.setVirtualMode(false);
var colToDisplay = new Array(2);
var columnNames = new Array(2);
var formats = new Array(2);

colToDisplay[0]="pointDate";
columnNames[0]="Date";
grid.getCellTemplate(0).setStyle("text-align","center");
grid.setColumnWidth(100, 0);
var format = new AW.Formats.Date;

format.setTextFormat("dd.MM.yyyy hh:mm");

formats[0] = format;

colToDisplay[1]="pointVolume";
columnNames[1]="Volume [KG]";
grid.getCellTemplate(1).setStyle("text-align","right");
grid.setColumnWidth(100, 1);
var format = new AW.Formats.Number;

format.setTextFormat("#");

formats[1] = format;
    
grid.setHeaderText(function(i){return columnNames[i]});
grid.setCellFormat(formats);
var list = new AW.XML.Table;
list.setProperty("URL", "Some URL");
list.request();
list.setColumns(colToDisplay);
grid.setCellModel(list);
document.write(grid);


Someone can help me ?

Thanks
Tof
Tuesday, February 28, 2006
No Problem with Firefox 1.5 !!
Tof
Wednesday, March 1, 2006
But the problem exists with Mozilla 1.7.3

Any idea ?

Thanks
Tof
Thursday, March 2, 2006
Same thing with Mozilla 1.7.12
Tof
Thursday, March 2, 2006
I have solved my problem.
On my html page there was 2 tables.
The second one was the one with the grid and was aligned on the left.
I have removed the "align=left" attribute. And everything is ok now !???!

<table>
<tr>
</tr>
</table
<table width="648" height="325" cellpadding="0" cellspacing="3" align="left">
<tr>
<td>
...script with the grid...
</td>
</tr>
</table>


Sorry for my english... It's maybe the reason why I have no answer !?
Tof
Thursday, March 2, 2006
Tof, sorry that I did not answer - I could not replicate the problem which you described. Apparently the important details were in the surrounding html which you did not mention in the original post.

If you have a problem - please post it in such way that me or other people can replicate it. Otherwise it is quite difficult to keep guessing what might be wrong if you don't see the problem yourself.
Alex (ActiveWidgets)
Thursday, March 2, 2006

This topic is archived.


Back to support forum

Forum search