Author: nbelaevski
Date: 2007-12-10 19:21:05 -0500 (Mon, 10 Dec 2007)
New Revision: 4683
Modified:
trunk/samples/simpleTogglePanel-sample/src/main/webapp/pages/index.jsp
trunk/ui/simpleTogglePanel/src/main/resources/org/richfaces/renderkit/html/scripts/simpleTogglePanel.js
Log:
http://jira.jboss.com/jira/browse/RF-1571
Modified: trunk/samples/simpleTogglePanel-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/samples/simpleTogglePanel-sample/src/main/webapp/pages/index.jsp 2007-12-11
00:08:25 UTC (rev 4682)
+++ trunk/samples/simpleTogglePanel-sample/src/main/webapp/pages/index.jsp 2007-12-11
00:21:05 UTC (rev 4683)
@@ -162,6 +162,11 @@
</stp:simpleTogglePanel>
</stp:simpleTogglePanel>
+
+ <stp:simpleTogglePanel opened="true" switchType="client"
label="Text only">
+ <h:outputText value="Just text!" />
+ </stp:simpleTogglePanel>
+
</f:view>
</body>
</html>
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-12-11
00:08:25 UTC (rev 4682)
+++
trunk/ui/simpleTogglePanel/src/main/resources/org/richfaces/renderkit/html/scripts/simpleTogglePanel.js 2007-12-11
00:21:05 UTC (rev 4683)
@@ -45,7 +45,6 @@
// body.firstChild.style.width=body.clientWidth;
} else if (this.invokeEvent("collapse",event,"true",body)) {
Element.hide(body);
- body.firstChild.style.width="100%";
this.status="false";
switch_on.style.display="none";
switch_off.style.display="";