prasy8 / google-maps-utility-library-v3

Automatically exported from code.google.com/p/google-maps-utility-library-v3
0 stars 0 forks source link

InfoBubble, domready event #39

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi there,

In my opinion the "domready" event is triggered in the wrong place. In order to 
keep consistency with InfoWindow, it should be triggered right after attaching 
the dom element to the pane, in onAdd method:

InfoBubble.prototype.onAdd = function() {

  // ...

  var panes = this.getPanes();
  if (panes) {
    panes.floatPane.appendChild(this.bubble_);
    panes.floatShadow.appendChild(this.bubbleShadow_);
    google.maps.event.trigger(this, 'domready');
  }
}

Original issue reported on code.google.com by jscriptc...@gmail.com on 30 Sep 2010 at 3:23

GoogleCodeExporter commented 9 years ago
I would disagree. The dom of the infobubble is ready in the onAdd but the dom 
of the content is not ready and for most use cases you would want to know when 
the content of the infobubble dom is ready to access rather than when the 
chrome around it as been added.

Original comment by lu...@google.com on 5 Oct 2010 at 11:44

GoogleCodeExporter commented 9 years ago
I have this issue, DOM is never ready on the first marker, closing first info 
box and opening a new one do trigger a info bubble DMO ready event.

Original comment by aplacebe...@gmail.com on 30 Sep 2011 at 9:48

GoogleCodeExporter commented 9 years ago
I handled this issue by adding 'domready' event on 'onAdd' method to trigger, 

Original comment by burakdede87 on 22 Nov 2011 at 10:03

Attachments: