On 13 mai, 15:28, Andrew Leach <[email protected]> wrote: > > There is only one infoWindow, so you can put > GEvent.addListener(map.getInfoWindow(),"maximizeend",easyscroll) > anywhere in global scope. That is, not in your createMarker function; > nor in the easyscroll script. > > Except I've just tried that and it causes no end of problems because > the function "start()" is not fully defined when the code reaches > obj.interval = setInterval("start()",50); > so it causes an error every 50ms. > > So: you need to delay running easyscroll until the maximised > infoWindow has sorted itself out. Do this with a timeout: > GEvent.addListener(map.getInfoWindow(), > "maximizeend", > function(){setTimeout(easyscroll,1)}) > which again needs to go into global scope. (Lines are separated here: > you can put all of that on one line). >
Thanks a lot :-) It works perfectly. Now, I'd like to know if it's possible to modify the size of this maxContent element, more precisely its width ? Maybe using the dom appendChild to add attributes to the div created ? Or is the width and height of this element is fixed ? Thanks again -- You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
