Author: julien(a)jboss.com
Date: 2007-04-08 08:54:10 -0400 (Sun, 08 Apr 2007)
New Revision: 6955
Modified:
trunk/theme/src/bin/portal-ajax-war/dyna/dyna.js
trunk/theme/src/main/org/jboss/portal/theme/impl/render/dynamic/DynaDecorationRenderer.java
Log:
update correctly the dyna-decoration
Modified: trunk/theme/src/bin/portal-ajax-war/dyna/dyna.js
===================================================================
--- trunk/theme/src/bin/portal-ajax-war/dyna/dyna.js 2007-04-08 12:38:21 UTC (rev 6954)
+++ trunk/theme/src/bin/portal-ajax-war/dyna/dyna.js 2007-04-08 12:54:10 UTC (rev 6955)
@@ -168,7 +168,7 @@
//
copyInnerHTML(srcContainer, dstContainer,
"dyna-portlet")
- copyInnerHTML(srcContainer, dstContainer,
"dyna-handle")
+ copyInnerHTML(srcContainer, dstContainer,
"dyna-decoration")
}
else
{
Modified:
trunk/theme/src/main/org/jboss/portal/theme/impl/render/dynamic/DynaDecorationRenderer.java
===================================================================
---
trunk/theme/src/main/org/jboss/portal/theme/impl/render/dynamic/DynaDecorationRenderer.java 2007-04-08
12:38:21 UTC (rev 6954)
+++
trunk/theme/src/main/org/jboss/portal/theme/impl/render/dynamic/DynaDecorationRenderer.java 2007-04-08
12:54:10 UTC (rev 6955)
@@ -55,21 +55,25 @@
DynaRenderOptions regionOptions =
(DynaRenderOptions)rendererContext.getAttribute(DynaConstants.DYNA_RENDER_OPTIONS);
//
+ PrintWriter markup = rendererContext.getWriter();
+
+ //
if (regionOptions.isDnDEnabled())
{
DynaWindowRenderer.handleProvided.set(Boolean.TRUE);
//
- PrintWriter markup = rendererContext.getWriter();
+ markup.print("<div class=\"dyna-handle\">");
markup.print("<div class=\"dyna-decoration\">\n");
- markup.print("<div class=\"dyna-handle\">");
delegate.render(rendererContext, drc);
markup.print("</div>\n");
markup.print("</div>\n");
}
else
{
+ markup.print("<div class=\"dyna-decoration\">\n");
delegate.render(rendererContext, drc);
+ markup.print("</div>\n");
}
}
}
\ No newline at end of file