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/03/09 21:47:21 UTC
svn commit: r516570 -
/incubator/xap/trunk/codebase/src/xap/bridges/dojo/TableBridge.js
Author: mturyn
Date: Fri Mar 9 13:47:20 2007
New Revision: 516570
URL: http://svn.apache.org/viewvc?view=rev&rev=516570
Log:
Re: Xap-315 (http://issues.apache.org/jira/browse/XAP-315)
Overrode superclass' setVisibilityAttribute() so that there's a formal delay before the visibility is reset; without it, the column headers don't seem to get the message not to display themselves if the component has visibility "false" ab initio.
Modified:
incubator/xap/trunk/codebase/src/xap/bridges/dojo/TableBridge.js
Modified: incubator/xap/trunk/codebase/src/xap/bridges/dojo/TableBridge.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/codebase/src/xap/bridges/dojo/TableBridge.js?view=diff&rev=516570&r1=516569&r2=516570
==============================================================================
--- incubator/xap/trunk/codebase/src/xap/bridges/dojo/TableBridge.js (original)
+++ incubator/xap/trunk/codebase/src/xap/bridges/dojo/TableBridge.js Fri Mar 9 13:47:20 2007
@@ -135,7 +135,7 @@
}
}
-// handler for removing childred
+// handler for removing children
xap.bridges.dojo.TableBridge.prototype.removeChild = function( childHandler ){
var childPeer = childHandler.getPeer();
if (childPeer instanceof xap.widgets.dojo.TableColumn){
@@ -146,3 +146,13 @@
this.getPeer().removeRow(childPeer);
}
}
+
+// Superclass method works fine except for columns; this "delay"
+// appears to fix that:
+xap.bridges.dojo.TableBridge.prototype.setVisibleAttribute = function(pszTf){
+ dojo.lang.setTimeout(this,
+ xap.bridges.basic.AbstractWidgetBridge.prototype.setVisibleAttribute,
+ 0,
+ pszTf
+ ) ;
+}
\ No newline at end of file