From xap-commits-return-1033-apmail-incubator-xap-commits-archive=incubator.apache.org@incubator.apache.org Wed Jan 24 07:52:15 2007 Return-Path: Delivered-To: apmail-incubator-xap-commits-archive@locus.apache.org Received: (qmail 85559 invoked from network); 24 Jan 2007 07:52:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jan 2007 07:52:15 -0000 Received: (qmail 25759 invoked by uid 500); 24 Jan 2007 07:52:21 -0000 Delivered-To: apmail-incubator-xap-commits-archive@incubator.apache.org Received: (qmail 25736 invoked by uid 500); 24 Jan 2007 07:52:21 -0000 Mailing-List: contact xap-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: xap-dev@incubator.apache.org Delivered-To: mailing list xap-commits@incubator.apache.org Received: (qmail 25724 invoked by uid 99); 24 Jan 2007 07:52:21 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jan 2007 23:52:21 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jan 2007 23:52:14 -0800 Received: by eris.apache.org (Postfix, from userid 65534) id 5FE201A981C; Tue, 23 Jan 2007 23:51:07 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r499298 - /incubator/xap/trunk/codebase/src/xap/bridges/dojo/WindowBridge.js Date: Wed, 24 Jan 2007 07:51:07 -0000 To: xap-commits@incubator.apache.org From: mturyn@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070124075107.5FE201A981C@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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: