You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by si...@apache.org on 2009/04/24 15:23:02 UTC

svn commit: r768304 - in /labs/magma/trunk/fragment-google-ads-xhtml: ./ src/main/java/org/apache/magma/web/google/ads/ src/main/resources/org/apache/magma/web/google/ads/

Author: simoneg
Date: Fri Apr 24 13:23:01 2009
New Revision: 768304

URL: http://svn.apache.org/viewvc?rev=768304&view=rev
Log:
LABS-329 : Avoid scroll bars on IE7

Modified:
    labs/magma/trunk/fragment-google-ads-xhtml/pom.xml
    labs/magma/trunk/fragment-google-ads-xhtml/src/main/java/org/apache/magma/web/google/ads/EmptyAdsTemplate.java
    labs/magma/trunk/fragment-google-ads-xhtml/src/main/resources/org/apache/magma/web/google/ads/emptyAdsTemplate.html
    labs/magma/trunk/fragment-google-ads-xhtml/src/main/resources/org/apache/magma/web/google/ads/xhtmlGoogleAdsInclude-head.vm

Modified: labs/magma/trunk/fragment-google-ads-xhtml/pom.xml
URL: http://svn.apache.org/viewvc/labs/magma/trunk/fragment-google-ads-xhtml/pom.xml?rev=768304&r1=768303&r2=768304&view=diff
==============================================================================
--- labs/magma/trunk/fragment-google-ads-xhtml/pom.xml (original)
+++ labs/magma/trunk/fragment-google-ads-xhtml/pom.xml Fri Apr 24 13:23:01 2009
@@ -15,5 +15,10 @@
       <artifactId>fragment-google-ads</artifactId>
       <version>0.0.2-SNAPSHOT</version>
     </dependency>
+    <dependency>
+      <groupId>org.apache.magma</groupId>
+      <artifactId>website-jquery</artifactId>
+      <version>0.0.2-SNAPSHOT</version>
+    </dependency>
   </dependencies>
 </project>
\ No newline at end of file

Modified: labs/magma/trunk/fragment-google-ads-xhtml/src/main/java/org/apache/magma/web/google/ads/EmptyAdsTemplate.java
URL: http://svn.apache.org/viewvc/labs/magma/trunk/fragment-google-ads-xhtml/src/main/java/org/apache/magma/web/google/ads/EmptyAdsTemplate.java?rev=768304&r1=768303&r2=768304&view=diff
==============================================================================
--- labs/magma/trunk/fragment-google-ads-xhtml/src/main/java/org/apache/magma/web/google/ads/EmptyAdsTemplate.java (original)
+++ labs/magma/trunk/fragment-google-ads-xhtml/src/main/java/org/apache/magma/web/google/ads/EmptyAdsTemplate.java Fri Apr 24 13:23:01 2009
@@ -9,5 +9,8 @@
 		fileName = "emptyAdsTemplate.html";
 	}
 	
+	@Override
+	public void layoutExtraContent() {
+	}
 
 }

Modified: labs/magma/trunk/fragment-google-ads-xhtml/src/main/resources/org/apache/magma/web/google/ads/emptyAdsTemplate.html
URL: http://svn.apache.org/viewvc/labs/magma/trunk/fragment-google-ads-xhtml/src/main/resources/org/apache/magma/web/google/ads/emptyAdsTemplate.html?rev=768304&r1=768303&r2=768304&view=diff
==============================================================================
--- labs/magma/trunk/fragment-google-ads-xhtml/src/main/resources/org/apache/magma/web/google/ads/emptyAdsTemplate.html (original)
+++ labs/magma/trunk/fragment-google-ads-xhtml/src/main/resources/org/apache/magma/web/google/ads/emptyAdsTemplate.html Fri Apr 24 13:23:01 2009
@@ -22,5 +22,11 @@
   </head>
   <body>
   	<div id="zoneMain"></div>
+  	<script>
+		document.body.style.border = 'none';
+		document.body.style.margin = '0';
+		document.body.style.padding = '0';
+		document.body.style.overflow = 'hidden';
+  	</script>
   </body>
 </html>
\ No newline at end of file

Modified: labs/magma/trunk/fragment-google-ads-xhtml/src/main/resources/org/apache/magma/web/google/ads/xhtmlGoogleAdsInclude-head.vm
URL: http://svn.apache.org/viewvc/labs/magma/trunk/fragment-google-ads-xhtml/src/main/resources/org/apache/magma/web/google/ads/xhtmlGoogleAdsInclude-head.vm?rev=768304&r1=768303&r2=768304&view=diff
==============================================================================
--- labs/magma/trunk/fragment-google-ads-xhtml/src/main/resources/org/apache/magma/web/google/ads/xhtmlGoogleAdsInclude-head.vm (original)
+++ labs/magma/trunk/fragment-google-ads-xhtml/src/main/resources/org/apache/magma/web/google/ads/xhtmlGoogleAdsInclude-head.vm Fri Apr 24 13:23:01 2009
@@ -6,4 +6,18 @@
 	border: 0px none;
 	
 } 
-</style>
\ No newline at end of file
+</style>
+<script>
+  function trimGoogleAds() {
+  	if (jQuery.browser.msie) {
+	  	$('.MagmaGoogleAdsObject').each(function(ele) {  	
+			this.body.style.border = 'none';
+			this.body.style.margin = '0';
+			this.body.style.padding = '0';
+			this.body.style.overflow = 'hidden';
+			});
+	}  	
+  }
+  
+  addOnload(trimGoogleAds);
+</script>
\ No newline at end of file



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org