Author: konstantin.mishin
Date: 2008-04-28 15:13:32 -0400 (Mon, 28 Apr 2008)
New Revision: 8267
Modified:
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/Grid.js
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js
trunk/ui/scrollableDataTable/src/main/resources/org/richfaces/renderkit/html/css/scrollable-data-table.xcss
Log:
RF-3264
Modified: trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/Grid.js
===================================================================
---
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/Grid.js 2008-04-28
19:12:13 UTC (rev 8266)
+++
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/Grid.js 2008-04-28
19:13:32 UTC (rev 8267)
@@ -87,9 +87,11 @@
if (element.offsetHeight != height) {
element.setStyle({height: height + "px"});
}
+ this.getHeader().resetFakeColumnWidth();
if(this.layout) {
this.layout.updateLayout();
}
+ this.getHeader().setFakeColumnWidth();
if (element.offsetHeight != height) {
element.setStyle({height: height + "px"});
}
Modified:
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js
===================================================================
---
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js 2008-04-28
19:12:13 UTC (rev 8266)
+++
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridHeader.js 2008-04-28
19:13:32 UTC (rev 8267)
@@ -246,7 +246,6 @@
this.headerFrozenRow.setHeight(height);
this.frozenSubstrate.setWidth(frozenContentWidth);
this.updateHeaders();
- this.setFakeColumnWidth();
},
getColumns: function() {
return this._columns;
@@ -392,14 +391,16 @@
if(width<=0) this.getColumns()[column].sep.hide();
},
+ resetFakeColumnWidth: function() {
+ this._columns.last().style.width = "0px";
+ },
+
setFakeColumnWidth: function() {
- var style = this._columns.last().style;
- style.width = "0px";
- var width = this.grid.getElement().offsetWidth -
this.headerRow.getElement().offsetWidth;
+ var width = this.grid.getBody().container.element.clientWidth -
this.headerFrozenRow.getElement().offsetWidth - this.headerRow.getElement().offsetWidth;
if (width < 0) {
width = 0;
}
- style.width = width + "px";
+ this._columns.last().style.width = width + "px";
},
hideColumn: function(index, frozen) {
Modified:
trunk/ui/scrollableDataTable/src/main/resources/org/richfaces/renderkit/html/css/scrollable-data-table.xcss
===================================================================
---
trunk/ui/scrollableDataTable/src/main/resources/org/richfaces/renderkit/html/css/scrollable-data-table.xcss 2008-04-28
19:12:13 UTC (rev 8266)
+++
trunk/ui/scrollableDataTable/src/main/resources/org/richfaces/renderkit/html/css/scrollable-data-table.xcss 2008-04-28
19:13:32 UTC (rev 8267)
@@ -67,7 +67,7 @@
background-position: center;
background-repeat: repeat-y;
cursor: e-resize;
- font-size: 1px;
+ font-size: 20px;
top: 0px;
width: 6px;
height: 100%;
Show replies by date