choisel / google-maps-utility-library-v3

Automatically exported from code.google.com/p/google-maps-utility-library-v3
Apache License 2.0
0 stars 0 forks source link

InfoBubble is not tall enough in case of roomy line-height #105

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
For a mobile app we're using a line height of 21px and this causes problems 
with the infoBubble because it calculates the height of the content wrong.
I've had a look at the code and you're using standard HTML functions, so it 
sounds like it's more a problem with browsers that don't return the size 
properly, but this can be solved by adding some extra padding to 
contentSize.height, so maybe it would be worth adding an extra option to 
infoBubble?

Browser / Operating System:
Chrome 12 / Windows
WebWorks / QNX OS, PlayBook

Additional comments:
Thank you very much for your library. It's much needed :)

Original issue reported on code.google.com by interfa...@gmail.com on 25 Jun 2011 at 11:17

GoogleCodeExporter commented 9 years ago
This may be related to an issue I've found with the way the infobubble script 
calculates the height/width of its content.  The content is appended to the 
body of the page before calculating the height and width.  This means that any 
additional styling that is present for the div that the map is contained in is 
not applied to the infobubble.  The attached patch goes some way to fixing this.

I will also agree with the original poster, this Library is fantastic (I'm 
using the clusterer and the infobubble code in a project).

Original comment by s.rycr...@nhm.ac.uk on 17 Nov 2011 at 5:48

Attachments:

GoogleCodeExporter commented 9 years ago
I applied this patch and still had similar problems - basically I can't get it 
to work as it is shown in the example, heaven knows why. All the CSS appears to 
be geting applied correctly, but it ALWAYS sets the height to 17px, no matter 
what I do.

Original comment by torm...@gmail.com on 10 Jan 2012 at 12:20