incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtu...@apache.org
Subject svn commit: r499298 - /incubator/xap/trunk/codebase/src/xap/bridges/dojo/WindowBridge.js
Date Wed, 24 Jan 2007 07:51:07 GMT
Author: mturyn
Date: Tue Jan 23 23:51:06 2007
New Revision: 499298

URL: http://svn.apache.org/viewvc?view=rev&rev=499298
Log:
http://issues.apache.org/jira/browse/XAP-58
Fixed a small bug in the initial sizing----wasn't putting that vital "px" after a measurement.

Modified:
    incubator/xap/trunk/codebase/src/xap/bridges/dojo/WindowBridge.js

Modified: incubator/xap/trunk/codebase/src/xap/bridges/dojo/WindowBridge.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/src/xap/bridges/dojo/WindowBridge.js?view=diff&rev=499298&r1=499297&r2=499298
==============================================================================
--- incubator/xap/trunk/codebase/src/xap/bridges/dojo/WindowBridge.js (original)
+++ incubator/xap/trunk/codebase/src/xap/bridges/dojo/WindowBridge.js Tue Jan 23 23:51:06
2007
@@ -54,10 +54,10 @@
 	this.superclass.init.call(this);
 	
 	var peer = this.getPeer() ;
-	if( !peer.previous ){
-		peer.previous = {} ;
-	}	
 
+	if(!peer.previous){
+		peer.previous = new Object() ;
+	}
 
 	peer.resizeTo(200,200) ;
 
@@ -118,8 +118,8 @@
 	}
 		
 	
-	this.setHeightAttribute(h) ;	
-	this.setWidthAttribute(w) ;	
+	this.setHeightAttribute(h+"px") ;	
+	this.setWidthAttribute(w+"px") ;	
 	
 	if( this.isCentered() ){
 		// does nothing until body grows larger than [0,0] in extent:



Mime
View raw message