Mercurial > public > sg101
changeset 832:c285a86fb4d5
Bandmap: add maxWidth param to InfoWindow ctor.
Hopefully this helps with weird display issues with text
getting cut off or scrollbars appearing.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 28 Sep 2014 21:12:01 -0500 |
parents | 0f9c014c8adc |
children | 497c720f9d0d |
files | bandmap/static/js/bandmap.js |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bandmap/static/js/bandmap.js Sun Sep 28 20:42:57 2014 -0500 +++ b/bandmap/static/js/bandmap.js Sun Sep 28 21:12:01 2014 -0500 @@ -73,7 +73,7 @@ var map_div = $('#map-canvas'); if (map_div.length) { bandmap = new google.maps.Map(map_div[0], map_options); - info_win = new google.maps.InfoWindow(); + info_win = new google.maps.InfoWindow({maxWidth: 300}); $('#map-filter-go').click(refreshMap); $('#map-bands').change(function() { var n = $('option:selected', this).val();