artmacks / 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

google.maps.event domready event is fired prematurely #240

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Demo link or sample code:
InfoBubble.prototype.onAdd = function() {
    if (!this.bubble_) {
        this.buildDom_();
    }

    this.addEvents_();

    var panes = this.getPanes();
    if (panes) {
        panes.floatPane.appendChild(this.bubble_);
        panes.floatShadow.appendChild(this.bubbleShadow_);
    }
    google.maps.event.trigger(this, 'domready'); // should happen here, after the element is actually added to the dom. 
};

What steps will reproduce the problem?
1. should be triggered after line 845
2. should not be triggered on line 1213

Expected result:
domready to be fired when the window/overlay is actually in the dom. 

Actual result:
event is fired after the content is ready to be added to the dom but isnt 
actually there.

Version: 0.8

Browser / Operating System:
All modern browsers

Additional comments:
pppplease?

*********************************************************
Tip: Star this issue (next to title) to receive notifications of status
changes against this issue, also used as a gauge for how many people are
interested in seeing it resolved.
*********************************************************

Original issue reported on code.google.com by adam.j.b...@gmail.com on 21 Mar 2013 at 10:05

GoogleCodeExporter commented 8 years ago
Any progress, fix, or workaround for this please? Sorry if this is a me-too but 
the solution looks to have been provided/suggested 6 months agoand I am still 
experiencing it with Maps 3.6 and V3 utilities. Cheers Richard Maher

Original comment by mahe...@googlemail.com on 20 Sep 2013 at 3:33