Author: nbelaevski
Date: 2008-09-07 16:23:04 -0400 (Sun, 07 Sep 2008)
New Revision: 10333
Modified:
branches/3.2.x/ui/panelbar/src/main/resources/org/richfaces/renderkit/html/scripts/panelbar.js
Log:
https://jira.jboss.org/jira/browse/RF-4408
Modified:
branches/3.2.x/ui/panelbar/src/main/resources/org/richfaces/renderkit/html/scripts/panelbar.js
===================================================================
---
branches/3.2.x/ui/panelbar/src/main/resources/org/richfaces/renderkit/html/scripts/panelbar.js 2008-09-05
18:27:38 UTC (rev 10332)
+++
branches/3.2.x/ui/panelbar/src/main/resources/org/richfaces/renderkit/html/scripts/panelbar.js 2008-09-07
20:23:04 UTC (rev 10333)
@@ -7,8 +7,8 @@
initialize: function(panelId, options) {
-// this.FF = (RichFaces.navigatorType() == RichFaces.FF)?true:false;
-// this.isIE = ((navigator.userAgent.toLowerCase().indexOf("msie")!=-1) ||
(navigator.userAgent.toLowerCase().indexOf("explorer")!=-1))?true:false;
+ this.FF = (RichFaces.navigatorType() == RichFaces.FF)?true:false;
+ this.isIE = ((navigator.userAgent.toLowerCase().indexOf("msie")!=-1) ||
(navigator.userAgent.toLowerCase().indexOf("explorer")!=-1))?true:false;
this.panel=$(panelId); //+"_p"
if (!this.panel) {
@@ -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();