Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#13821 closed defect (fixed)

Resize event can not be transfered to child widgets of dojox.mobile.SwapView

Reported by: binlish Owned by: ykami
Priority: high Milestone: 1.7
Component: DojoX Mobile Version: 1.7.0b1
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by ykami)

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"));

Attachments (2)

StatefulModel.js.patch (416 bytes) - added by binlish 8 years ago.
swapview.js.patch (598 bytes) - added by binlish 8 years ago.

Download all attachments as: .zip

Change History (6)

Changed 8 years ago by binlish

Attachment: StatefulModel.js.patch added

Changed 8 years ago by binlish

Attachment: swapview.js.patch added

comment:1 Changed 8 years ago by ykami

Description: modified (diff)
Status: newassigned

You are correct. Thank you for the patch. I will fix SwapView, but please open another ticket for StatefulModel.

comment:2 Changed 8 years ago by ykami

Resolution: fixed
Status: assignedclosed

In [26455]:

Fixes #13821 !strict. Added resize() to SwapView?.

comment:3 Changed 8 years ago by ykami

In [26461]:

Refs #13821 Test file fix: use the height property to be resized correctly.

comment:4 Changed 8 years ago by ykami

In [26462]:

Refs #13821 Test file fix: use the height property to be resized correctly.

Note: See TracTickets for help on using tickets.