Author: akushunin
Date: 2007-10-22 10:27:45 -0400 (Mon, 22 Oct 2007)
New Revision: 3465
Modified:
trunk/ui/simpleTogglePanel/src/main/resources/org/richfaces/renderkit/html/scripts/simpleTogglePanel.js
trunk/ui/simpleTogglePanel/src/main/templates/simpleTogglePanel.jspx
Log:
RF-1120
Modified:
trunk/ui/simpleTogglePanel/src/main/resources/org/richfaces/renderkit/html/scripts/simpleTogglePanel.js
===================================================================
---
trunk/ui/simpleTogglePanel/src/main/resources/org/richfaces/renderkit/html/scripts/simpleTogglePanel.js 2007-10-22
12:55:14 UTC (rev 3464)
+++
trunk/ui/simpleTogglePanel/src/main/resources/org/richfaces/renderkit/html/scripts/simpleTogglePanel.js 2007-10-22
14:27:45 UTC (rev 3465)
@@ -11,19 +11,22 @@
this.status="true";
}
- this.timer = setTimeout(this.windowOnLoad.bind(this), 100);
+// this.timer = setTimeout(this.windowOnLoad.bind(this), 100);
},
- windowOnLoad: function(){
+/* windowOnLoad: function(){
if (RichFaces.navigatorType() == "MSIE"){
var body = $(this.panelId+"_body");
- if (body && body.style.display!="none")
body.firstChild.style.width=body.clientWidth;
+ if (body && body.style.display!="none")
body.firstChild.style.width=body.clientWidth;
+*/
+
/* if ($(this.panelId_head).clientWidth<$(this.panelId).clientWidth){
$(this.panelId_head).style.width=$(this.panelId).clientWidth-2+"px";
- }*/
+ }
}
},
+*/
toggleToState: function() {
var body = $(this.panelId+"_body");
@@ -34,7 +37,7 @@
this.status="true";
switch_off.style.display="none";
switch_on.style.display="";
- this.timer = setTimeout(this.windowOnLoad.bind(this), 100);
+// this.timer = setTimeout(this.windowOnLoad.bind(this), 100);
// body.firstChild.style.width=body.clientWidth;
} else {
Element.hide(body);
Modified: trunk/ui/simpleTogglePanel/src/main/templates/simpleTogglePanel.jspx
===================================================================
--- trunk/ui/simpleTogglePanel/src/main/templates/simpleTogglePanel.jspx 2007-10-22
12:55:14 UTC (rev 3464)
+++ trunk/ui/simpleTogglePanel/src/main/templates/simpleTogglePanel.jspx 2007-10-22
14:27:45 UTC (rev 3465)
@@ -87,17 +87,13 @@
<f:call name="utils.encodeEndFormIfNessesary"/>
<div id="#{clientId}_body"
+ class="dr-stglpnl-b rich-stglpanel-body
#{component.attributes['bodyClass']}"
style="display : #{this:getdivdisplay(context, component)};
- height: #{component.attributes['height']}; width: 100%;">
- <table cellpadding="0" style="width: 100%" >
- <tr>
- <td class="dr-stglpnl-b rich-stglpanel-body
#{component.attributes['bodyClass']}">
+ height: #{component.attributes['height']};">
+
<vcp:body>
<f:call name="renderChildren" />
</vcp:body>
- </td>
- </tr>
- </table>
</div>
</div>