[Mapbender-commits] r7798 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon May 9 08:09:07 EDT 2011
Author: arsgeografica
Date: 2011-05-09 05:09:06 -0700 (Mon, 09 May 2011)
New Revision: 7798
Modified:
trunk/mapbender/http/javascripts/mod_digitize_tab.php
Log:
Fixed wrong calculated offsets when digitizing in IE and the page is scrolled.
This is due to http://bugs.jquery.com/ticket/7319 and is a Mapbender-specific work-around.
Modified: trunk/mapbender/http/javascripts/mod_digitize_tab.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_digitize_tab.php 2011-05-06 11:50:54 UTC (rev 7797)
+++ trunk/mapbender/http/javascripts/mod_digitize_tab.php 2011-05-09 12:09:06 UTC (rev 7798)
@@ -417,8 +417,16 @@
}
function getMousePosition(e) {
var map = parent.getMapObjByName(mod_digitize_target);
+ var pos = map.getMousePosition(e);
- return map.getMousePosition(e);
+ // http://bugs.jquery.com/ticket/7319
+ if( $.browser.msie ) {
+ var doc = parent.$(e.target.ownerDocument);
+ pos.x = pos.x + doc.scrollLeft();
+ pos.y = pos.y + doc.scrollTop();
+ }
+
+ return pos;
}
More information about the Mapbender_commits
mailing list