Author: nbelaevski
Date: 2008-09-07 16:36:15 -0400 (Sun, 07 Sep 2008)
New Revision: 10335
Modified:
trunk/samples/richfaces-demo/src/main/webapp/css/common.css
trunk/ui/panelbar/src/main/resources/org/richfaces/renderkit/html/scripts/panelbar.js
Log:
https://jira.jboss.org/jira/browse/RF-3526
https://jira.jboss.org/jira/browse/RF-4408
Modified: trunk/samples/richfaces-demo/src/main/webapp/css/common.css
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/css/common.css 2008-09-07 20:23:38 UTC
(rev 10334)
+++ trunk/samples/richfaces-demo/src/main/webapp/css/common.css 2008-09-07 20:36:15 UTC
(rev 10335)
@@ -177,7 +177,7 @@
padding : 0;
}
- .dr-pnlbar-ext {
+ .dr-pnlbar-int {
zoom: 1;
}
Modified:
trunk/ui/panelbar/src/main/resources/org/richfaces/renderkit/html/scripts/panelbar.js
===================================================================
---
trunk/ui/panelbar/src/main/resources/org/richfaces/renderkit/html/scripts/panelbar.js 2008-09-07
20:23:38 UTC (rev 10334)
+++
trunk/ui/panelbar/src/main/resources/org/richfaces/renderkit/html/scripts/panelbar.js 2008-09-07
20:36:15 UTC (rev 10335)
@@ -98,13 +98,9 @@
var h=0;
this.hclient=0;
for(var i=0; i<this.slides.length; i++) {
- if (Richfaces.browser.isIE6) {
- //
https://jira.jboss.org/jira/browse/RF-3526
- var processItem = this.slides[i].item;
- h+= (processItem.offsetHeight -(this.getBorderTB(processItem) +
this.getPaddingTB(processItem)));
- } else {
h+=this.slides[i].item.offsetHeight;
- }
+
+
}
this.hclient=h;
this.contentHight = this.panel.clientHeight-h;
@@ -113,18 +109,6 @@
return this.contentHight;
},
- getBorderTB: function(el){
- var top = parseInt(Element.getStyle(el, "border-top-width", 10));
- var bottom = parseInt(Element.getStyle(el, "border-bottom-width", 10));
- return (top + bottom);
- },
-
- getPaddingTB: function(el){
- var top = parseInt(Element.getStyle(el, "padding-top-", 10));
- var bottom = parseInt(Element.getStyle(el, "padding-bottom", 10));
- return (top + bottom);
- },
-
showSlide: function(slide) {
if (this.current) this.current.hideContent();