You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2006/02/06 21:30:25 UTC

svn commit: r375357 - /myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/popup/resource/JSPopup.js

Author: werpu
Date: Mon Feb  6 12:30:23 2006
New Revision: 375357

URL: http://svn.apache.org/viewcvs?rev=375357&view=rev
Log:
added margin border calculations to the whole thing
so that the margin rendering works as expected

Modified:
    myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/popup/resource/JSPopup.js

Modified: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/popup/resource/JSPopup.js
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/popup/resource/JSPopup.js?rev=375357&r1=375356&r2=375357&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/popup/resource/JSPopup.js (original)
+++ myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/popup/resource/JSPopup.js Mon Feb  6 12:30:23 2006
@@ -29,6 +29,12 @@
 	    	iframe.style.height = popup.offsetHeight;
 	    	iframe.style.top 	= popup.style.top;
     		iframe.style.left 	= popup.style.left;
+    		
+    		iframe.style.marginTop 		= popup.style.marginTop;
+    		iframe.style.marginLeft 	= popup.style.marginLeft;
+    		iframe.style.marginRight 	= popup.style.marginRight;
+    		iframe.style.marginBottem 	= popup.style.marginBottom;
+    		
 			iframe.style.display = "block";
 			iframe.style.visibility = "visible"; /*we have to set an explicit visible otherwise it wont work*/