[Mapbender-commits] r5722 - trunk/mapbender/http/plugins
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Mar 3 09:08:04 EST 2010
Author: christoph
Date: 2010-03-03 09:08:03 -0500 (Wed, 03 Mar 2010)
New Revision: 5722
Modified:
trunk/mapbender/http/plugins/mb_navigation.js
Log:
Modified: trunk/mapbender/http/plugins/mb_navigation.js
===================================================================
--- trunk/mapbender/http/plugins/mb_navigation.js 2010-03-03 07:25:36 UTC (rev 5721)
+++ trunk/mapbender/http/plugins/mb_navigation.js 2010-03-03 14:08:03 UTC (rev 5722)
@@ -45,33 +45,19 @@
top = (
iconOffset
) + "px";
- left = (
- parseInt($target.css("width"), 10) / 2 - iconDim/2
- ) + "px";
+ left = (iconOffset + iconDim) + "px";
break;
case "s":
- top = (
- parseInt($target.css("height"), 10) - iconDim - iconOffset
- ) + "px";
- left = (
- parseInt($target.css("width"), 10) / 2 - iconDim/2
- ) + "px";
+ top = (iconOffset + 2*iconDim) + "px";
+ left = (iconOffset + iconDim) + "px";
break;
case "w":
- top = (
- parseInt($target.css("height"), 10) / 2 - iconDim/2
- ) + "px";
- left = (
- iconOffset
- ) + "px";
+ top = (iconOffset + iconDim) + "px";
+ left = (iconOffset + iconDim/2) + "px"
break;
case "e":
- top = (
- parseInt($target.css("height"), 10) / 2 - iconDim/2
- ) + "px";
- left = (
- parseInt($target.css("width"), 10) - iconDim - iconOffset
- ) + "px";
+ top = (iconOffset + iconDim) + "px";
+ left = (iconOffset + iconDim*1.5) + "px"
break;
}
$domElement.css({
More information about the Mapbender_commits
mailing list