title: How can I make infowindows resize for tweets in Google Maps v3 with Javascript
body: <p>I'm trying to add a few tweets to an infowindow in Google Maps. I get the tweets to display in a div that is the content of my infowindow, but it's the wrong size.</p>
  
  <p>I thought by calling '<strong>content_changed</strong>' when the marker is clicked, the infowindow would resize - it doesn't.</p>
  
  <p>I'm sure this is pretty straightforward, can someone help me out?</p>
  
  <p>Thanks,</p>
  
  <p>James</p>
  
  <pre><code>var myLatlng = new google.maps.LatLng(51.500261,-0.126793);
  var myOptions = {
    zoom: 12,
    center: myLatlng,
    mapTypeId: google.maps.MapTypeId.ROADMAP
  };
  
  var map = new google.maps.Map(document.getElementById("map_canvas"),
      myOptions);
  
  var marker = new google.maps.Marker({
    position: myLatlng,
    map: map,
  });
  
  var infowindow = new google.maps.InfoWindow();
  infowindow.setContent(document.getElementById("station"));
  
  google.maps.event.addListener(marker, 'click', function() {
      google.maps.event.trigger(infowindow, 'content_changed');
      infowindow.open(map,marker);
  });
  </code></pre>