diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-08-04 21:16:50 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-08-05 08:00:44 +0100 |
commit | 4551e7c976c86bf2709652a78d29575bbe6a99db (patch) | |
tree | 43e5bb8fc0ca10c3198de87b971159c61fbce947 | |
parent | 9924113ea73d8af2614481a854c4261acb3f245e (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.
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | web/cobrands/fixmystreet/fixmystreet.js | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 48657c10c..842e7b311 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - Set up action scheduled field when report loaded. #1789 - Stop errors from JS validator due to form in form. - Stop update form toggle causing report submission. + - Update map size if an extra column has appeared. * v2.1.1 (3rd August 2017) - Email improvements: 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(); } |