Author: vmolotkov
Date: 2007-12-10 10:17:50 -0500 (Mon, 10 Dec 2007)
New Revision: 4660
Modified:
branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/LayoutManager.js
Log:
headers rendering was changed
Modified:
branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/LayoutManager.js
===================================================================
---
branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/LayoutManager.js 2007-12-10
15:17:13 UTC (rev 4659)
+++
branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/LayoutManager.js 2007-12-10
15:17:50 UTC (rev 4660)
@@ -1,7 +1,7 @@
LayoutManager = function(headerId, contentId) {
this.headerTable = $(headerId);
this.contentTable = $(contentId);
- this.headerDiv = this.headerTable.parentNode;
+ this.headerDiv = (this.headerTable) ? this.headerTable.parentNode : null;
this.contentDiv = this.contentTable.parentNode;
var obj = this;
@@ -39,7 +39,9 @@
headCell.style.width = width + "px";
}
} else {
- this.headerTable.style.width = this.contentDiv.offsetWidth;
+ if (this.headerTable && this.headerTable.tHead) {
+ this.headerTable.style.width = this.contentDiv.offsetWidth;
+ }
}
}
@@ -51,7 +53,9 @@
}
LayoutManager.prototype.scrollHandler = function(obj) {
- obj.headerDiv.scrollLeft = obj.contentDiv.scrollLeft;
+ if (obj.headerDiv) {
+ obj.headerDiv.scrollLeft = obj.contentDiv.scrollLeft;
+ }
}
LayoutManager.getHeaderWidth = function(visibleBox, realBox) {
Show replies by date