summaryrefslogtreecommitdiffstats
path: root/pages/scores.php
diff options
context:
space:
mode:
authorBlueRaja <BlueRaja.admin@gmail.com>2013-03-19 03:26:48 -0500
committerBlueRaja <BlueRaja.admin@gmail.com>2013-03-19 03:26:48 -0500
commitb6680dd405fdf6cd2784facfe799742cfaf805ab (patch)
treee9cd81aebfc67c76053792583efb0a1fe942ff6c /pages/scores.php
parenta600bd24aa5272dfd3b9f178ef9e2c81ec0525b9 (diff)
parentbc57b007dfa5e6e723946143671a9db68a82f348 (diff)
downloadpathery-b6680dd405fdf6cd2784facfe799742cfaf805ab.tar.xz
Merge branch 'master' of git.raylu.net:pathery
Conflicts: globe.php pages/login.php
Diffstat (limited to 'pages/scores.php')
-rw-r--r--pages/scores.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/pages/scores.php b/pages/scores.php
index 3f252ec..fc86b4f 100644
--- a/pages/scores.php
+++ b/pages/scores.php
@@ -118,10 +118,7 @@ function displayMapScores(mapID) {
scoresShowPage(pointerPage, mapID);
- //Create a fake DOM element to determine the margin-left of the map, to get the target width
- var fakeMapDom = $('<div class="mapCol"></div>');
- var mapMargin = parseInt(fakeMapDom.css('margin-left'));
- var targetWidth = $('.mapNavCon').width() - $('#scoreDisplay').width() - mapMargin;
+ targetWidth = parseInt($('.wrapper').css("width")) - parseInt($('.scoreCol').css("width"));
displayMap(mapID, "mapDisplay", targetWidth);
}