Author: konstantin.mishin
Date: 2008-03-27 10:50:40 -0400 (Thu, 27 Mar 2008)
New Revision: 7302
Modified:
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js
Log:
RF-2341
Modified:
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js
===================================================================
---
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js 2008-03-27
14:19:34 UTC (rev 7301)
+++
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js 2008-03-27
14:50:40 UTC (rev 7302)
@@ -437,12 +437,12 @@
updateHeaders : function() {
var cols = this.getColumns();
for(var i = 0; i < cols.length; i++) {
- var col = cols[i];
- var div = col.object.getElement().firstChild;
+ var th = cols[i].object.getElement();
+ var div = th.firstChild;
var icon = this._getCellElements(i)[1];
if (icon) {
- var newPosX = div.clientWidth - icon.getWidth();
+ var newPosX = th.offsetLeft + div.clientWidth - icon.getWidth();
var newPosY = (div.clientHeight - icon.offsetHeight)/2;
newPosX = Math.floor(newPosX);
Show replies by date