summaryrefslogtreecommitdiffstats
path: root/pages
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2013-03-12 22:46:55 -0700
committerPatrick Davison <snapwilliam@gmail.com>2013-03-12 22:46:55 -0700
commit96803882ec2a7677f9e92f1707636b589edca461 (patch)
treed7a01247ab5e0fa5b1050c50717f3985fa6ba7a8 /pages
parent7d04d4f7e177365e711200e72d8211f474f7265e (diff)
downloadpathery-96803882ec2a7677f9e92f1707636b589edca461.tar.xz
Scoreboard dynamic map width.
Diffstat (limited to 'pages')
-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);
}