Closed GoogleCodeExporter closed 9 years ago
Original comment by garylitt...@gmail.com
on 9 May 2011 at 6:20
Check the trunk version at
http://google-maps-utility-library-v3.googlecode.com/svn/trunk/infobox/ to
verify that it solves your problem.
Original comment by garylitt...@gmail.com
on 9 May 2011 at 6:39
Fixed in 1.1.6.
Original comment by garylitt...@gmail.com
on 8 Jul 2011 at 4:01
I'm afraid this still doesn't work in 1.1.8. The code right now is:
if (!this.fixedWidthSet_) {
this.div_.style.width = this.div_.offsetWidth + "px";
if (typeof content.nodeType === "undefined") {
this.div_.innerHTML = this.getCloseBoxImg_() + content; //here (1)
} else {
this.div_.innerHTML = this.getCloseBoxImg_();
// Note: don't append the content node again //and here (2)
}
}
There are a few problems here --
1. Using '+ content' means that nodes aren't appended correctly; the content
gets set to [Object object], or alike. This should be using appendChild(),
surely.
2. I'm not sure what the thoughts were behind that note, but the result is an
infobox with no content in.
This could be reproduced by calling setContent twice with a node.
Original comment by maxhar...@gmail.com
on 1 Oct 2011 at 10:23
Replace this line
// Note: don't append the content node again //and here (2)
with
this.div_.appendChild(content);
and tell me if it solves your problem.
Original comment by garylitt...@gmail.com
on 1 Oct 2011 at 11:58
Yes, it does -- this is the workaround I'm using at the moment.
Original comment by maxhar...@gmail.com
on 2 Oct 2011 at 8:23
OK, I've just tagged a 1.1.9 release to fix this.
Original comment by garylitt...@gmail.com
on 2 Oct 2011 at 4:33
Original issue reported on code.google.com by
maxhar...@gmail.com
on 1 May 2011 at 12:55