[Mapbender-commits] r1796 - in trunk/mapbender/http: css javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Nov 12 03:38:56 EST 2007


Author: nimix
Date: 2007-11-12 03:38:55 -0500 (Mon, 12 Nov 2007)
New Revision: 1796

Modified:
   trunk/mapbender/http/css/popup.css
   trunk/mapbender/http/javascripts/popup.js
Log:
add scrollbar for non iframe popups

Modified: trunk/mapbender/http/css/popup.css
===================================================================
--- trunk/mapbender/http/css/popup.css	2007-11-09 15:02:57 UTC (rev 1795)
+++ trunk/mapbender/http/css/popup.css	2007-11-12 08:38:55 UTC (rev 1796)
@@ -1,6 +1,7 @@
 @CHARSET "UTF-8";
 div.jqmNotice .jqResize {position: absolute; right: 2px; bottom: 2px;width:16px;height:16px;background:url(../img/resize.gif);}
 div.jqmNotice iframe {width:100%;height:100%;}
+div.jqmNotice div.scrollDiv {overflow:auto;width:100%;height:100%;}
 
 div.jqmNotice {
     display: none;

Modified: trunk/mapbender/http/javascripts/popup.js
===================================================================
--- trunk/mapbender/http/javascripts/popup.js	2007-11-09 15:02:57 UTC (rev 1795)
+++ trunk/mapbender/http/javascripts/popup.js	2007-11-12 08:38:55 UTC (rev 1796)
@@ -137,7 +137,7 @@
 	this.width=width;
 	this.height=height;
 	this.title=title;
-	this.html=html.indexOf("url:")==0?'<iframe src="'+html.substr(4)+'"></iframe>':html;
+	this.html=html.indexOf("url:")==0?('<iframe src="'+html.substr(4)+'"></iframe>'):('<div class="scrollDiv">'+html+'</div>');
 	this.id="popup"+String(create_pos);
 	popup_count++;
 }



More information about the Mapbender_commits mailing list