diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2013-03-12 22:46:55 -0700 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2013-03-12 22:46:55 -0700 |
commit | 96803882ec2a7677f9e92f1707636b589edca461 (patch) | |
tree | d7a01247ab5e0fa5b1050c50717f3985fa6ba7a8 /pages/scores.php | |
parent | 7d04d4f7e177365e711200e72d8211f474f7265e (diff) | |
download | pathery-96803882ec2a7677f9e92f1707636b589edca461.tar.xz |
Scoreboard dynamic map width.
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);
}
|