Resize event can not be transfered to child widgets of dojox.mobile.SwapView
The resize function of SwapView?'s children widgets are not invoked, Because the resize event can not be transfered to child widgets of dojox.mobile.SwapView?
Index: SwapView.js
===================================================================
--- SwapView.js (revision 26299)
+++ SwapView.js (working copy)
@@ -74,6 +74,13 @@
domClass.add(view.domNode, "mblIn");
this.slideTo({x:0}, 0.5, "ease-out", {x:-w*dir});
},
+
+ resize: function(){
+ this.inherited(arguments); // scrollable#resize() will be called
+ dojo.forEach(this.getChildren(), function(child){
+ if(child.resize){ child.resize(); }
+ });
+ },
isSwapView: function(node){
return (node && node.nodeType === 1 && domClass.contains(node, "mblSwapView"));
You are correct. Thank you for the patch. I will fix SwapView, but please open another ticket for StatefulModel.