[mapguide-commits] r8607 - sandbox/adsk/3.0m/Web/src/viewerfiles
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Sun Mar 29 19:48:29 PDT 2015
Author: christinebao
Date: 2015-03-29 19:48:29 -0700 (Sun, 29 Mar 2015)
New Revision: 8607
Modified:
sandbox/adsk/3.0m/Web/src/viewerfiles/ajaxmappane.templ
Log:
Fix Ticket #2552: Zoom slider not available in IE 10 with basic layout and without compatibility mode.
Submit on behalf of Andy Su.
The root case of the defect is that the feature DirectX-based Filters(filter:progid:DXImageTransform.Microsoft.AlphaImageLoader) has been removed from IE10?\226?\128?\153s Standards and Quirks modes. To fix the issue, use a standards-based alternative tag <img> to replace it.
Modified: sandbox/adsk/3.0m/Web/src/viewerfiles/ajaxmappane.templ
===================================================================
--- sandbox/adsk/3.0m/Web/src/viewerfiles/ajaxmappane.templ 2015-03-29 15:10:47 UTC (rev 8606)
+++ sandbox/adsk/3.0m/Web/src/viewerfiles/ajaxmappane.templ 2015-03-30 02:48:29 UTC (rev 8607)
@@ -3960,7 +3960,14 @@
if (img.parentElement.href) imgStyle = "cursor:pointer;" + imgStyle
if (img.useMap)
strAddMap = "<img style=\"position:absolute; left: 0px; top: 0px; height:" + img.height + "px; width:" + img.width + ";\" " + "src=\"" + strGif + "\" usemap=\"" + img.useMap + "\" border=\"" + img.border + "\">";
- var strNewHTML = "<span " + imgID + imgClass + imgTitle + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";" + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'" + img.src + "\', sizingMethod='crop');\"></span>"
+ //The feature DirectX-based Filters has been removed from IE10’s Standards and Quirks modes.
+ if (msie10plus)
+ {
+ var strSrcImg = "<img src=\'" + img.src +"\'>";
+ var strNewHTML = "<span " + imgID + imgClass + imgTitle + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";\"" + ">" + strSrcImg + "</span>";
+ }
+ else
+ var strNewHTML = "<span " + imgID + imgClass + imgTitle + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";" + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'" + img.src + "\', sizingMethod='crop');\"></span>";
if (img.useMap) strNewHTML += strAddMap
img.outerHTML = strNewHTML
}
More information about the mapguide-commits
mailing list