Author: konstantin.mishin
Date: 2008-08-13 07:58:19 -0400 (Wed, 13 Aug 2008)
New Revision: 10063
Modified:
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js
Log:
RF-4177
Modified:
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js
===================================================================
---
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js 2008-08-13
11:42:11 UTC (rev 10062)
+++
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js 2008-08-13
11:58:19 UTC (rev 10063)
@@ -217,6 +217,7 @@
//http://jira.jboss.com/jira/browse/RF-2953
//this.defaultRowHeight = this._calcDefaultRowHeight();
+ var scrollTop = this.scrollBox.element.scrollTop;
this.scrollBox.hide();
//this.sizeBox.setHeight(this.defaultRowHeight * this.grid.dataModel.getCount() +
fixH);
this.helpObject1.moveToY(this.sizeBox.element.offsetHeight+ this.defaultRowHeight +
5);
@@ -228,6 +229,7 @@
this.adjustDataPosition(this.currentPos);
}
this.scrollBox.show();
+ this.scrollBox.element.scrollTop = scrollTop;
var viewWidth = this.scrollBox.getViewportWidth();
this.container.setWidth(viewWidth);