Note that there are some explanatory texts on larger screens.

plurals
  1. POInfowindow cut off at the top
    primarykey
    data
    text
    <p>Here is the code to demo the issue I noticed.</p> <p>&gt; <a href="http://jsfiddle.net/cyberram/NLzqf/" rel="nofollow">JSFiddle</a> &lt;</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv="content-type" content="text/html; charset=UTF-8"&gt; &lt;style type='text/css'&gt; html, body { height: 100%; margin: 0; padding: 0; } p,h4 { margin:0; } #map-canvas{ width:425px; height:300px; margin:1em; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="map-canvas"&gt;&lt;/div&gt; &lt;script src="https://maps.googleapis.com/maps/api/js?v=3.exp&amp;sensor=false"&gt;&lt;/script&gt; &lt;script type='text/javascript'&gt;//&lt;![CDATA[ function initialize() { var myLatlng = new google.maps.LatLng(-38.06794990,145.30192430); var mapOptions = { zoom: 4, center: myLatlng, mapTypeId: google.maps.MapTypeId.ROADMAP } var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions); var contentString = '&lt;div style="width:300px;"&gt;&lt;H4&gt;Heading&lt;/H4&gt;&lt;P&gt;&lt;B&gt;Address:&lt;/B&gt; Community Centre 51L The Strand, Narre Warren South 3805&lt;/P&gt;&lt;/div&gt;'; var infowindow = new google.maps.InfoWindow({ content: contentString }); var marker = new google.maps.Marker({ position: myLatlng, map: map, title: 'Food Waste and Organics workshop' }); infowindow.open(map, marker); google.maps.event.addListener(marker, 'click', function(event) { infowindow.open(map, marker); }); } google.maps.event.addDomListener(window, 'load', initialize); //]]&gt; &lt;/script&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>The infowindow opens fine, when its opened with the click event. But if its done on window load event, it doesn't align the infowindow properly in the map area and the top part of the infowindow is cut off. Even increasing the height of the map div doesn't seem to help.</p> <p>Thanks, Kumar.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload