[richfaces-svn-commits] JBoss Rich Faces SVN: r5534 - trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Tue Jan 22 09:19:35 EST 2008


Author: sergeyhalipov
Date: 2008-01-22 09:19:34 -0500 (Tue, 22 Jan 2008)
New Revision: 5534

Modified:
   trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
Log:
https://jira.exadel.com/browse/PS-150
Fix movement for autosized MP.

Modified: trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js
===================================================================
--- trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js	2008-01-22 13:29:36 UTC (rev 5533)
+++ trunk/ui/modal-panel/src/main/resources/org/richfaces/renderkit/html/scripts/modalPanel.js	2008-01-22 14:19:34 UTC (rev 5534)
@@ -713,7 +713,7 @@
 		var oldSize = newSize;
 		newSize += diff.deltaWidth || 0;
 
-		if (newSize >= this.minWidth) {
+		if (newSize >= this.minWidth || this.options.autosized) {
 			if (diff.deltaWidth) {
 				cssHashWH.width = newSize + 'px';
 			}
@@ -738,17 +738,10 @@
 				diff.deltaX = vetoes.vx;
 			}
 			var newPos;
-			if (eCdiv.mpUseExpr) {
-				newPos = eCdiv.mpLeft || 0;
-				newPos += diff.deltaX;
-
-				eCdiv.mpLeft = newPos;
-				cssHash.left = newPos + 'px';
-			} else {
-				newPos = Richfaces.getComputedStyleSize(eCdiv, "left");
-				newPos += diff.deltaX;
-				cssHash.left = newPos + 'px';
-			}
+			
+			newPos = Richfaces.getComputedStyleSize(eCdiv, "left");
+			newPos += diff.deltaX;
+			cssHash.left = newPos + 'px';
 		}
 
 		newSize = Richfaces.getComputedStyleSize(eContentDiv, "height");
@@ -756,7 +749,7 @@
 		var oldSize = newSize;
 		newSize += diff.deltaHeight || 0;
 
-		if (newSize >= this.minHeight) {
+		if (newSize >= this.minHeight || this.options.autosized) {
 			if (diff.deltaHeight) {
 				cssHashWH.height = newSize + 'px';
 			}




More information about the richfaces-svn-commits mailing list