From 96803882ec2a7677f9e92f1707636b589edca461 Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Tue, 12 Mar 2013 22:46:55 -0700 Subject: Scoreboard dynamic map width. --- pages/scores.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'pages') 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 = $('
'); - 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); } -- cgit v1.2.3