Author: konstantin.mishin
Date: 2007-09-27 09:49:49 -0400 (Thu, 27 Sep 2007)
New Revision: 3143
Modified:
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/Grid.js
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js
Log:
RF-1002
Modified: trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/Grid.js
===================================================================
---
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/Grid.js 2007-09-27
13:36:10 UTC (rev 3142)
+++
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/Grid.js 2007-09-27
13:49:49 UTC (rev 3143)
@@ -132,6 +132,7 @@
this.getBody().adjustColumnWidth(index, width);
if(this.getFooter()) this.getFooter().adjustColumnWidth(index, width);
this.updateLayout();
+ this.getHeader().agjustSeparators();
this.eventOnResizeColumn.fire(index, width);
},
adjustScrollPosition: function(pos) {
Modified:
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js
===================================================================
---
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js 2007-09-27
13:36:10 UTC (rev 3142)
+++
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js 2007-09-27
13:49:49 UTC (rev 3143)
@@ -362,7 +362,7 @@
var columns = this.grid.getHeader().getColumns();
var bodyCell = columns.last().bodyCol;
if(bodyCell) bodyCell.width = 1;
- var width = this.grid.getElement().offsetWidth - this.fTable.offsetWidth -
this.nTable.offsetWidth;
+ var width = this.container.getElement().offsetWidth - this.fTable.offsetWidth -
this.nTable.offsetWidth;
if (width < 1) {
width = 1;
}
Modified:
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js
===================================================================
---
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js 2007-09-27
13:36:10 UTC (rev 3142)
+++
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js 2007-09-27
13:49:49 UTC (rev 3143)
@@ -469,7 +469,6 @@
this._columns[column].col.width = width>0 ? width : 1;
if(width<=0) this.getColumns()[column].sep.hide();
this._columns[column].width = width;
- this.agjustSeparators();
},
setFakeColumnWidth: function() {