[ https://issues.apache.org/jira/browse/CLEREZZA-47?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Reto Bachmann-Gmür reopened CLEREZZA-47: ---------------------------------------- as constructor in the example its still serialized html thats passed as argument. It doesn't work when I pass an HTMLElement. According to the yui documentation HTMLElement are supported (if they weren't that would in my opinion exclude yui in implementing this feature. A quick tests confirms that the yui widget supprt an HTMNLElement as constructor argument ... <div style="display: none"> <div id="myOverlayBody">body!</div> </div> <div> <a href="#" onclick="new YAHOO.widget.Panel(document.getElementById('myOverlayBody')).render(document.body)">works</a><br/> <a href="#" onclick="Overlay.show(document.getElementById('myOverlayBody'), 'header', '20em', '10em');">body is ignored</a> <br/> </div> </body> </html> In the script the constructir is called with: new YAHOO.widget.Panel("tx-assetsdetail", .... not sure hwat the string "tx-assetdetail" is here for, and why the correct body isn't set right away. > Scripts: Overlay (virtual windows) > ---------------------------------- > > Key: CLEREZZA-47 > URL: https://issues.apache.org/jira/browse/CLEREZZA-47 > Project: Clerezza > Issue Type: Bug > Reporter: Reto Bachmann-Gmür > Assignee: Tsuyoshi Ito > > http://svn.apache.org/viewvc/incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.webapp.parent/org.apache.clerezza.web.resources.scripts/src/main/resources/org/apache/clerezza/web/resources/scripts/staticweb/overlay.js > > implements such an overly with significant limitations: > - the size has to be expressed in pixel (even though the comment implies the > unit is part of the argument, expected is just a number of pixel) > - the body can only be text and not an arbitrary element > - the default size is absolute rather than in proportion of the window size > - documentation in webguiexample is mssing -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.