Skip to content
This repository has been archived by the owner on May 11, 2020. It is now read-only.

Commit

Permalink
fix issue #879
Browse files Browse the repository at this point in the history
  • Loading branch information
allenhwkim committed Nov 25, 2018
1 parent b3bc7ed commit 36fdc2d
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 11 deletions.
6 changes: 4 additions & 2 deletions build/docs/source/info-window.html
Expand Up @@ -105,8 +105,10 @@
} else {
infoWindow.open(map);
}
var infoWindowContainerEl = infoWindow.content.parentElement.parentElement.parentElement;
infoWindowContainerEl.className = "ng-map-info-window";
$timeout(function() { // to avoid racing condition
var infoWindowContainerEl = infoWindow.content.parentElement.parentElement.parentElement;
infoWindowContainerEl.className = "ng-map-info-window";
});
});
});
};
Expand Down
6 changes: 4 additions & 2 deletions build/scripts/ng-map.debug.js
Expand Up @@ -1190,8 +1190,10 @@ angular.module('ngMap', []);
} else {
infoWindow.open(map);
}
var infoWindowContainerEl = infoWindow.content.parentElement.parentElement.parentElement;
infoWindowContainerEl.className = "ng-map-info-window";
$timeout(function() { // to avoid racing condition
var infoWindowContainerEl = infoWindow.content.parentElement.parentElement.parentElement;
infoWindowContainerEl.className = "ng-map-info-window";
});
});
});
};
Expand Down
6 changes: 4 additions & 2 deletions build/scripts/ng-map.js
Expand Up @@ -1199,8 +1199,10 @@ angular.module('ngMap', []);
} else {
infoWindow.open(map);
}
var infoWindowContainerEl = infoWindow.content.parentElement.parentElement.parentElement;
infoWindowContainerEl.className = "ng-map-info-window";
$timeout(function() { // to avoid racing condition
var infoWindowContainerEl = infoWindow.content.parentElement.parentElement.parentElement;
infoWindowContainerEl.className = "ng-map-info-window";
});
});
});
};
Expand Down
2 changes: 1 addition & 1 deletion build/scripts/ng-map.min.js

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions build/scripts/ng-map.no-dependency.js
Expand Up @@ -1199,8 +1199,10 @@ angular.module('ngMap', []);
} else {
infoWindow.open(map);
}
var infoWindowContainerEl = infoWindow.content.parentElement.parentElement.parentElement;
infoWindowContainerEl.className = "ng-map-info-window";
$timeout(function() { // to avoid racing condition
var infoWindowContainerEl = infoWindow.content.parentElement.parentElement.parentElement;
infoWindowContainerEl.className = "ng-map-info-window";
});
});
});
};
Expand Down
6 changes: 4 additions & 2 deletions directives/info-window.js
Expand Up @@ -111,8 +111,10 @@
} else {
infoWindow.open(map);
}
var infoWindowContainerEl = infoWindow.content.parentElement.parentElement.parentElement;
infoWindowContainerEl.className = "ng-map-info-window";
$timeout(function() { // to avoid racing condition
var infoWindowContainerEl = infoWindow.content.parentElement.parentElement.parentElement;
infoWindowContainerEl.className = "ng-map-info-window";
});
});
});
};
Expand Down

0 comments on commit 36fdc2d

Please sign in to comment.