summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/mapspecs.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/js/mapspecs.js b/js/mapspecs.js
index 688c9dc..dbb1c60 100644
--- a/js/mapspecs.js
+++ b/js/mapspecs.js
@@ -852,17 +852,12 @@ function mapAsHTML(map, targetWidth, mapEditor) {
//console.log("MapObj", map);
mapdata[map.ID] = map;
+ //Map bigger than target width?
if (!targetWidth || (map.width * 35) <= targetWidth)
{
+ //Use standard size.
targetWidth = (map.width * 35);
}
- else
- {
- //Need to take into account padding of .grid_outer
- var fakeGridDom = $('<div class="grid_outer"></div>');
- var gridOuterPadding = parseInt(fakeGridDom.css('padding-left')) + parseInt(fakeGridDom.css('padding-right'));
- targetWidth -= gridOuterPadding;
- }
var scale = map.width / targetWidth;
//alert(scale);