Mercurial > public > sg101
diff bandmap/static/js/bandmap.js @ 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 | b9973588af28 |
children | 497c720f9d0d |
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();