Window causes exceptions and warnings (Exception: Error - Invalid Argument)
---------------------------------------------------------------------------
Key: XAP-292
URL: https://issues.apache.org/jira/browse/XAP-292
Project: XAP
Issue Type: Bug
Components: Widgets
Reporter: David Gennaco
This can be reproduced simply with the following xap code:
<xal xmlns="http://openxal.org/ui/html">
<window title="New Window" width="300px" height="300px">
<freePane width="300px" height="300px">
</freePane>
</window>
</xal>
The problem is the bridge code appends "px" so internally you get width and
height value of "300pxpx"
The following change to the init() method of xap/bridges/dojo/WindowBridge.js
will fix this:
this.setHeightAttribute(h+"px") ;
this.setWidthAttribute(w+"px") ;
to:
this.setHeightAttribute(h) ;
this.setWidthAttribute(w) ;
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.