You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by mt...@apache.org on 2007/01/24 07:51:07 UTC
svn commit: r499298 -
/incubator/xap/trunk/codebase/src/xap/bridges/dojo/WindowBridge.js
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: