benlau / gogogohk

Automatically exported from code.google.com/p/gogogohk
0 stars 0 forks source link

/planning - The info window of marker should be resized automaitcally #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When user click on the marker , it will prompt information about the stop,
however, the info window do not resize according to the content loaded.

Original issue reported on code.google.com by xben...@gmail.com on 21 Aug 2009 at 5:53

GoogleCodeExporter commented 9 years ago
watching where's the problem.

Original comment by mr.ksc...@gmail.com on 26 Aug 2009 at 5:35

GoogleCodeExporter commented 9 years ago
/gogogo/media/Stop.js line 38 - createMarker()

- gmap info window is opened with html object tag. 
- data is loaded as html and the object tag will become iframe alike
- after data loaded, info window does not resize accordingly

proposed fix:
- use jquery instead of object tag
- use $('#markerwin').load(...) after info window is shown
- the load have a callback to resize the info window

Original comment by mr.ksc...@gmail.com on 26 Aug 2009 at 8:04

GoogleCodeExporter commented 9 years ago
- use jquery instead of object tag
- use $('#markerwin').load(...) after info window is shown
- jquery load-callback resize the info window to content width-height

see 
http://github.com/gogogo/gogogo-hk/tree/9615eac02f2d9b77730526bfd7194be365c33c74

tested under:
ie 8.0.6
chrome 2.0.172
ff 3.5.2
ff 3.0.13

Original comment by mr.ksc...@gmail.com on 26 Aug 2009 at 8:38