diff options
author | BlueRaja <BlueRaja.admin@gmail.com> | 2013-03-19 03:26:48 -0500 |
---|---|---|
committer | BlueRaja <BlueRaja.admin@gmail.com> | 2013-03-19 03:26:48 -0500 |
commit | b6680dd405fdf6cd2784facfe799742cfaf805ab (patch) | |
tree | e9cd81aebfc67c76053792583efb0a1fe942ff6c /pages/scores.php | |
parent | a600bd24aa5272dfd3b9f178ef9e2c81ec0525b9 (diff) | |
parent | bc57b007dfa5e6e723946143671a9db68a82f348 (diff) | |
download | pathery-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.php | 5 |
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);
}
|