Author: adrianc
Date: Sat Jun 14 09:34:25 2008
New Revision: 667837
URL:
http://svn.apache.org/viewvc?rev=667837&view=revLog:
Screenlet initially-collapsed bug fix provided by Bruno Busco -
https://issues.apache.org/jira/browse/OFBIZ-1840.
Modified:
ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlScreenRenderer.java
ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ModelScreenWidget.java
Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlScreenRenderer.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlScreenRenderer.java?rev=667837&r1=667836&r2=667837&view=diff==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlScreenRenderer.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlScreenRenderer.java Sat Jun 14 09:34:25 2008
@@ -222,6 +222,9 @@
writer.append("<div");
if (UtilValidate.isNotEmpty(collapsibleAreaId)) {
writer.append(" id=\"" + collapsibleAreaId + "\"");
+ if (collapsed) {
+ writer.append(" style=\"display: none;\"");
+ }
}
if (screenlet.padded()) {
writer.append(" class=\"screenlet-body\"");
Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ModelScreenWidget.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ModelScreenWidget.java?rev=667837&r1=667836&r2=667837&view=diff==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ModelScreenWidget.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/ModelScreenWidget.java Sat Jun 14 09:34:25 2008
@@ -397,10 +397,8 @@
}
try {
screenStringRenderer.renderScreenletBegin(writer, context, collapsed, this);
- if (!collapsed) {
- for (ModelScreenWidget subWidget : this.subWidgets) {
- screenStringRenderer.renderScreenletSubWidget(writer, context, subWidget, this);
- }
+ for (ModelScreenWidget subWidget : this.subWidgets) {
+ screenStringRenderer.renderScreenletSubWidget(writer, context, subWidget, this);
}
screenStringRenderer.renderScreenletEnd(writer, context, this);
} catch (IOException e) {
@@ -1543,3 +1541,4 @@
+