ADI-Labs / density

wireless density API
13 stars 26 forks source link

Map popup alignment #136

Closed raymondxu closed 9 years ago

raymondxu commented 9 years ago

On Safari 8.0.4, OS X 10.10.2, the map popups become misaligned after refreshing the page a few times. From testing, the popups also realign themselves after multiple refreshes.

Update: Issue also appears on Chrome.

Incorrect (Mouse is hovering over the upper right red rectangle): screen shot 2015-03-27 at 4 44 07 pm

Correct: screen shot 2015-03-27 at 4 45 30 pm

natebrennand commented 9 years ago

please include screenshots

evantarrh commented 9 years ago

lol @RaymondXu fixed this accidentally???????????? :+1: :+1: :100:

raymondxu commented 9 years ago

Seems fixed by #161 for reference.

function checkReady() {
    if (document.getElementById('map').getSVGDocument() == null) {
      setTimeout(checkReady, 5);
    }
    else {
      run();
    }
  }