sainera / gmaps-samples-v3

Automatically exported from code.google.com/p/gmaps-samples-v3
0 stars 0 forks source link

panMap function doesn't treat bounds as number #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. in function InfoBox.prototype.panMap
2. at line "var iwWestLng = position.lng() + (iwOffsetX - padX) * degPixelX;"
3. position.lng() is treated as a string, so subsequent addition works as
string does and simply be appended at the end of position.lng() value

What is the expected output? What do you see instead?
I should see map pan to the left when infowindow right bound is bigger than
map's right bound. Instead I see infowindow be trunked (as if map has an
overflow hidden property)

What version of the product are you using? On what operating system?
I downloaded javascript used in this demo:
http://gmaps-samples-v3.googlecode.com/svn/trunk/infowindow_custom/infowindow-cu
stom.html

Please provide any additional information below.

Original issue reported on code.google.com by fadesla...@gmail.com on 31 Aug 2009 at 1:48

GoogleCodeExporter commented 8 years ago
I forgot to say I use Firefox 3.5.2 on Windows XP Professional SP2

Original comment by fadesla...@gmail.com on 31 Aug 2009 at 1:50