Author: konstantin.mishin
Date: 2008-03-24 14:12:44 -0400 (Mon, 24 Mar 2008)
New Revision: 7142
Modified:
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js
Log:
RF-1550
Modified:
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js
===================================================================
---
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js 2008-03-24
18:08:52 UTC (rev 7141)
+++
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js 2008-03-24
18:12:44 UTC (rev 7142)
@@ -731,18 +731,18 @@
showRow: function(rowIndex) {
if(rowIndex == "up") {
- this.scrollBox.getElement().scrollTop = this.scrollBox.getElement().scrollTop -
this.fTable.rows[1].offsetTop;
+ this.scrollBox.getElement().scrollTop = this.scrollBox.getElement().scrollTop -
this.nTable.rows[1].offsetTop;
} else if(rowIndex == "down") {
- this.scrollBox.getElement().scrollTop = this.scrollBox.getElement().scrollTop +
this.fTable.rows[1].offsetTop;
+ this.scrollBox.getElement().scrollTop = this.scrollBox.getElement().scrollTop +
this.nTable.rows[1].offsetTop;
} else {
var row = $(this.gridId + ":n:" + rowIndex);
- var offsetTop = this.fTable.offsetTop + row.offsetTop;
- if(this.frozenContentBox.getElement().scrollTop > offsetTop) {
+ var offsetTop = this.nTable.offsetTop + row.offsetTop;
+ if(this.contentBox.getElement().scrollTop > offsetTop) {
this.scrollBox.getElement().scrollTop = offsetTop;
} else {
offsetTop += row.offsetHeight;
- offsetTop -= this.frozenContentBox.getElement().clientHeight;
- if (this.frozenContentBox.getElement().scrollTop < offsetTop){
+ offsetTop -= this.contentBox.getElement().clientHeight;
+ if (this.contentBox.getElement().scrollTop < offsetTop){
this.scrollBox.getElement().scrollTop = offsetTop;
}
}
Show replies by date