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 jm...@apache.org on 2006/10/12 01:48:35 UTC

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

Author: jmargaris
Date: Wed Oct 11 18:48:35 2006
New Revision: 463101

URL: http://svn.apache.org/viewvc?view=rev&rev=463101
Log:
workaround for dojo components appearing in the wrong order
onscreen even though they are in the right order in the dom,
weird dojo-specific issue

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?view=diff&rev=463101&r1=463100&r2=463101
==============================================================================
--- incubator/xap/trunk/src/xap/bridges/dojo/DojoWidgetBridge.js (original)
+++ incubator/xap/trunk/src/xap/bridges/dojo/DojoWidgetBridge.js Wed Oct 11 18:48:35 2006
@@ -155,7 +155,7 @@
 xap.bridges.dojo.DojoWidgetBridge.prototype.addChild = function(childHandler, index){
 	
 	//index -1 just append!
-	var insertIndex = index<0?null:index;
+	var insertIndex = index<0?this.getPeer().children.length:index;
 	var childPeer = childHandler.getPeer();
 	
 	if (childPeer instanceof dojo.widget.HtmlWidget){