Author: vmolotkov
Date: 2007-11-29 12:56:20 -0500 (Thu, 29 Nov 2007)
New Revision: 4359
Modified:
branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/LayoutManager.js
Log:
layout was corrected
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-11-29
17:40:01 UTC (rev 4358)
+++
branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/LayoutManager.js 2007-11-29
17:56:20 UTC (rev 4359)
@@ -38,7 +38,7 @@
headCell.firstChild.style.width = width + "px";
headCell.style.width = width + "px";
}
- //this.headerTable.style.width = this.contentTable.offsetWidth +
(this.contentDiv.offsetWidth - this.contentDiv.clientWidth);
+ this.headerTable.style.width = this.contentTable.offsetWidth +
(this.contentDiv.offsetWidth - this.contentDiv.clientWidth);
}
}
@@ -71,7 +71,6 @@
var tgtElemMarginWidth = LayoutManager.getMarginWidth(tgtElem, "lr");
//alert("srcElemBorderWidth:" + srcElemBorderWidth +
"srcElemPaddingWidth:" + srcElemPaddingWidth + "srcElemMarginWidth:" +
srcElemMarginWidth + "tgtElemBorderWidth:" + tgtElemBorderWidth +
"tgtElemPaddingWidth:" + tgtElemPaddingWidth + "tgtElemMarginWidth:" +
tgtElemMarginWidth);
var srcWidth = srcElem.offsetWidth - srcElemBorderWidth - srcElemPaddingWidth -
srcElemMarginWidth;
- //alert(tgtElem.style.width + "|" + srcElem.offsetWidth);
return {srcWidth : srcWidth, colWidth : (srcWidth + (srcElemBorderWidth -
tgtElemBorderWidth)
+ (srcElemPaddingWidth - tgtElemPaddingWidth)
+ (srcElemMarginWidth - tgtElemMarginWidth))};
@@ -92,10 +91,10 @@
LayoutManager.getStyles = function(el, sides, styles) {
var val = 0;
for(var i = 0, len = sides.length; i < len; i++){
- if (el.getStyle) {
- var w = parseInt(el.getStyle(styles[sides.charAt(i)]), 10);
+ //if (el.getStyle) {
+ var w = parseInt(Element.getStyle(el, styles[sides.charAt(i)]), 10);
if(!isNaN(w)) val += w;
- }
+ //}
}
return val;
}
Show replies by date