Skip to content

Commit

Permalink
fix marker's auto open position of infowindow
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzhenn committed Oct 25, 2017
1 parent 9d7d3bc commit cd6742b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ui/InfoWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,12 @@ class InfoWindow extends UIComponent {
}

_onAutoOpen(e) {
this.show(e.coordinate);
const owner = this.getOwner();
if (owner instanceof Marker) {
this.show();
} else {
this.show(e.coordinate);
}
}

_getWindowWidth() {
Expand Down

0 comments on commit cd6742b

Please sign in to comment.