You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-dev@incubator.apache.org by "David Gennaco (JIRA)" <xa...@incubator.apache.org> on 2007/02/01 22:40:05 UTC

[jira] Created: (XAP-292) Window causes exceptions and warnings (Exception: Error - Invalid Argument)

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.


[jira] Closed: (XAP-292) Window causes exceptions and warnings (Exception: Error - Invalid Argument)

Posted by "Trevor Oldak (JIRA)" <xa...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/XAP-292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Trevor Oldak closed XAP-292.
----------------------------


> 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: Windows and Dialogs
>            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.


[jira] Resolved: (XAP-292) Window causes exceptions and warnings (Exception: Error - Invalid Argument)

Posted by "James Margaris (JIRA)" <xa...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/XAP-292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Margaris resolved XAP-292.
--------------------------------

    Resolution: Fixed

This is fixed, code in this area has totally changed

> 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: Windows and Dialogs
>            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.


[jira] Updated: (XAP-292) Window causes exceptions and warnings (Exception: Error - Invalid Argument)

Posted by "James Margaris (JIRA)" <xa...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/XAP-292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Margaris updated XAP-292:
-------------------------------

    Component/s:     (was: Widgets: Other)
                 Widgets: Windows and Dialogs

> 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: Windows and Dialogs
>            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.