Author: vmolotkov
Date: 2008-05-12 13:28:36 -0400 (Mon, 12 May 2008)
New Revision: 8532
Modified:
trunk/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/LayoutManager.js
Log:
http://jira.jboss.com/jira/browse/RF-3390
Modified:
trunk/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/LayoutManager.js
===================================================================
---
trunk/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/LayoutManager.js 2008-05-12
16:53:25 UTC (rev 8531)
+++
trunk/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/LayoutManager.js 2008-05-12
17:28:36 UTC (rev 8532)
@@ -13,6 +13,20 @@
LayoutManager.STYLE_CONTENTTD_PADDING = 4;
LayoutManager.prototype.widthSynchronization = function() {
+ if (Prototype.Browser.IE && this.contentDiv && this.contentTable
&& this.getScrollWidth()) {
+ //IE displays unnecessary horizontal scroll
+ //when vertical scroll's displayed
+ if (this.contentTable.offsetWidth && ((this.contentTable.offsetWidth <=
this.contentDiv.clientWidth))) {
+ this.contentTable.style.width = this.contentDiv.clientWidth + "px";
+ if (this.headerTable) {
+ this.headerTable.style.width = this.contentDiv.offsetWidth + "px";
+ }
+ this.contentDiv.style.overflowX = 'hidden';
+ }
+ } else {
+ this.contentTable.style.width = "100%";
+ }
+
var rows = this.contentTable.tBodies[0].rows;
if (rows && rows[0]) {
//table can be empty
@@ -37,20 +51,6 @@
this.headerTable.style.width = "100%";
}
}
-
- if (Prototype.Browser.IE && this.contentDiv && this.contentTable
&& this.getScrollWidth()) {
- //IE displays unnecessary horizontal scroll
- //when vertical scroll's displayed
- if (this.contentTable.offsetWidth && ((this.contentTable.offsetWidth <=
this.contentDiv.clientWidth))) {
- this.contentTable.style.width = this.contentDiv.clientWidth + "px";
- if (this.headerTable) {
- this.headerTable.style.width = this.contentDiv.offsetWidth + "px";
- }
- this.contentDiv.style.overflowX = 'hidden';
- }
- } else {
- this.contentTable.style.width = "100%";
- }
}
LayoutManager.prototype.getScrollWidth = function() {