From 2c69f7e82362d3b04ef63ba4d14f750787a007ad Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Wed, 18 Jun 2014 11:50:50 -0400 Subject: [PATCH] Replace magic numbers in trimmedExtent with variables.. --- js/id/renderer/map.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/id/renderer/map.js b/js/id/renderer/map.js index 999628785..4138dad1a 100644 --- a/js/id/renderer/map.js +++ b/js/id/renderer/map.js @@ -366,8 +366,9 @@ iD.Map = function(context) { }; map.trimmedExtent = function() { - return new iD.geo.Extent(projection.invert([10, dimensions[1] - 40]), - projection.invert([dimensions[0] - 10, 70])); + var headerY = 60, footerY = 30, pad = 10; + return new iD.geo.Extent(projection.invert([pad, dimensions[1] - footerY - pad]), + projection.invert([dimensions[0] - pad, headerY + pad])); }; map.extentZoom = function(_) {