Author: konstantin.mishin
Date: 2008-04-09 07:58:53 -0400 (Wed, 09 Apr 2008)
New Revision: 7693
Modified:
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js
Log:
RF-2953
Modified:
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js
===================================================================
---
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js 2008-04-09
11:43:39 UTC (rev 7692)
+++
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js 2008-04-09
11:58:53 UTC (rev 7693)
@@ -218,6 +218,9 @@
this.scrollBox.setWidth(width);
this.scrollBox.setHeight(height);
+ this.defaultRowHeight = this._calcDefaultRowHeight();
+ this.sizeBox.setHeight(this.defaultRowHeight * this.grid.dataModel.getCount() + fixH);
+
height = this.scrollBox.getElement().clientHeight;
this.contentBox.setHeight(height - fixH);
@@ -225,9 +228,10 @@
this.frozenContentBox.setHeight(height - fixH);
this.container.setHeight(height - fixH);
- this.defaultRowHeight = this._calcDefaultRowHeight();
+ //http://jira.jboss.com/jira/browse/RF-2953
+ //this.defaultRowHeight = this._calcDefaultRowHeight();
this.scrollBox.hide();
- this.sizeBox.setHeight(this.defaultRowHeight * this.grid.dataModel.getCount() + fixH);
+ //this.sizeBox.setHeight(this.defaultRowHeight * this.grid.dataModel.getCount() +
fixH);
this.helpObject1.moveToY(this.sizeBox.element.offsetHeight+ this.defaultRowHeight +
5);
this.helpObject2.moveToY(this.sizeBox.element.offsetHeight+ this.defaultRowHeight +
5);