Author: nbelaevski
Date: 2008-04-10 19:36:53 -0400 (Thu, 10 Apr 2008)
New Revision: 7748
Modified:
branches/3.2.x/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js
Log:
http://jira.jboss.com/jira/browse/RF-2953
Modified:
branches/3.2.x/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js
===================================================================
---
branches/3.2.x/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js 2008-04-10
23:33:32 UTC (rev 7747)
+++
branches/3.2.x/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js 2008-04-10
23:36:53 UTC (rev 7748)
@@ -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);