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 jm...@apache.org on 2006/10/18 22:41:20 UTC

svn commit: r465404 - /incubator/xap/trunk/src/xap/widgets/dojo/Window.js

Author: jmargaris
Date: Wed Oct 18 15:41:19 2006
New Revision: 465404

URL: http://svn.apache.org/viewvc?view=rev&rev=465404
Log:
minimize/maximiz icon positioning fixes

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=465404&r1=465403&r2=465404
==============================================================================
--- incubator/xap/trunk/src/xap/widgets/dojo/Window.js (original)
+++ incubator/xap/trunk/src/xap/widgets/dojo/Window.js Wed Oct 18 15:41:19 2006
@@ -61,6 +61,12 @@
 		this.resizeTo(this.previous.width, 
 			dojo.style.getOuterHeight(this.titleBar) + dojo.style.getOuterHeight(this.resizeBar));
 		this.minimizeAction.style.display="none";
+		
+		var restoreParent = this.restoreAction.parentNode;
+		restoreParent.removeChild(this.restoreAction);
+		restoreParent.appendChild(this.restoreAction);
+		
+		
 		this.restoreAction.style.display="";
 		this.windowState="minimized";
 	},
@@ -77,6 +83,10 @@
 		if (xap.util.Event.getPreventDefault(evt)){
 			return;
 		}
+		
+		var restoreParent = this.restoreAction.parentNode;
+		restoreParent.removeChild(this.restoreAction);
+		restoreParent.insertBefore(this.restoreAction,this.minimizeAction);
 		
 		xap.widgets.dojo.Window.superclass.maximizeWindow.call(this,evt);
 	},