incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtu...@apache.org
Subject svn commit: r486044 - /incubator/xap/trunk/src/xap/widgets/dojo/Window.js
Date Tue, 12 Dec 2006 06:05:05 GMT
Author: mturyn
Date: Mon Dec 11 22:05:05 2006
New Revision: 486044

URL: http://svn.apache.org/viewvc?view=rev&rev=486044
Log:
>From Rob Gagne

Added child node handling to support dynamic resize for those children that support it

Modified:
    incubator/xap/trunk/src/xap/widgets/dojo/Window.js

Modified: incubator/xap/trunk/src/xap/widgets/dojo/Window.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/widgets/dojo/Window.js?view=diff&rev=486044&r1=486043&r2=486044
==============================================================================
--- incubator/xap/trunk/src/xap/widgets/dojo/Window.js (original)
+++ incubator/xap/trunk/src/xap/widgets/dojo/Window.js Mon Dec 11 22:05:05 2006
@@ -120,6 +120,29 @@
 		xap.widgets.dojo.Window.superclass.closeWindow.call(this,evt);
 	},
 	
+	// copied from Floating Pane
+	// This is called when the user adjusts the size of the floating pane
+	resizeTo: function(w, h){
+		dojo.style.setOuterWidth(this.domNode, w);
+		dojo.style.setOuterHeight(this.domNode, h);
+
+		dojo.html.layout(this.domNode,
+			[
+			  {domNode: this.titleBar, layoutAlign: "top"},
+			  {domNode: this.resizeBar, layoutAlign: "bottom"},
+			  {domNode: this.containerNode, layoutAlign: "client"}
+			] );
+
+		this.bgIframe.onResized();
+		if(this.shadow){ this.shadow.size(w, h); }
+		this.onResized();
+		
+		// let the child node know that we're resizing
+		if (this._containerChild && this._containerChild.getPeer && this._containerChild.getPeer().onResized)
{
+			this._containerChild.getPeer().onResized();
+		}
+	},
+
 	resizeWindow: function(){
 		//logic copied from floating pane
 		dojo.html.layout(this.domNode,



Mime
View raw message