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 2006/08/17 20:26:21 UTC

svn commit: r432380 - /incubator/xap/trunk/src/xap/bridges/dojo/DojoWidgetBridge.js

Author: mturyn
Date: Thu Aug 17 13:26:20 2006
New Revision: 432380

URL: http://svn.apache.org/viewvc?rev=432380&view=rev
Log:
Improved the jsdoc.

Modified:
    incubator/xap/trunk/src/xap/bridges/dojo/DojoWidgetBridge.js

Modified: incubator/xap/trunk/src/xap/bridges/dojo/DojoWidgetBridge.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/bridges/dojo/DojoWidgetBridge.js?rev=432380&r1=432379&r2=432380&view=diff
==============================================================================
--- incubator/xap/trunk/src/xap/bridges/dojo/DojoWidgetBridge.js (original)
+++ incubator/xap/trunk/src/xap/bridges/dojo/DojoWidgetBridge.js Thu Aug 17 13:26:20 2006
@@ -92,6 +92,8 @@
  * is good at creating a widget into the place in a DOM previously 
  * occupied by an HTML element, we first create a vanilla
  * <code>&lt;DIV/&gt;</code> to be swapped-out with the widget's containing DIV.
+ * We get the string Dojo will use to locate the widget to create from 
+ * the subclass' <code>this.getPeerString()</code>. 
  */
 xap.bridges.dojo.DojoWidgetBridge.prototype.obtainPeer = function() {
         
@@ -140,6 +142,13 @@
 	    
 	    var tmp = document.createElement('div');
 	    
+	    // Will setting the dimensions of the original div help us size the 
+	    // eventual Dojo widget?
+	    for( var fieldName in this._creationProperties ){
+	    	if( !tmp.style[fieldName]){
+		   	 tmp.style[fieldName] = this._creationProperties[fieldName] ;   	 
+		}
+	    }
 
 	    tmp.parent = parentPeerNode ;
 	    parentPeerNode.appendChild(tmp) ;