aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-08-04 21:16:50 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-08-05 08:00:44 +0100
commit4551e7c976c86bf2709652a78d29575bbe6a99db (patch)
tree43e5bb8fc0ca10c3198de87b971159c61fbce947 /web
parent9924113ea73d8af2614481a854c4261acb3f245e (diff)
Update map size if an extra column has appeared.
Pulling in a report via JavaScript that has two columns (e.g. the inspect form) changes the size of the map, so updateSize needs to be called.
Diffstat (limited to 'web')
-rw-r--r--web/cobrands/fixmystreet/fixmystreet.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js
index 27f612d54..4d38c81d2 100644
--- a/web/cobrands/fixmystreet/fixmystreet.js
+++ b/web/cobrands/fixmystreet/fixmystreet.js
@@ -1053,7 +1053,7 @@ fixmystreet.display = {
fixmystreet.page = 'report';
fixmystreet.mobile_reporting.remove_ui();
- if ($('html').hasClass('mobile') && fixmystreet.map.updateSize) {
+ if (fixmystreet.map.updateSize && ($twoColReport.length || $('html').hasClass('mobile'))) {
fixmystreet.map.updateSize();
}