incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmarga...@apache.org
Subject svn commit: r463101 - /incubator/xap/trunk/src/xap/bridges/dojo/DojoWidgetBridge.js
Date Thu, 12 Oct 2006 01:48:35 GMT
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){



Mime
View raw message