Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Info window renders mislocated when used with *ngIf #752

Closed
svarzee opened this issue Nov 21, 2016 · 1 comment
Closed

Info window renders mislocated when used with *ngIf #752

svarzee opened this issue Nov 21, 2016 · 1 comment

Comments

@svarzee
Copy link
Contributor

svarzee commented Nov 21, 2016

Issue description
If the *ngIf condition at an info window is set to false and then it changes to true, then the info window is rendered mislocated.

Steps to reproduce and a minimal demo of the problem

  1. Create a map with a marker and an info window anchored to the marker. The info window should have *ngIf.
  2. Change the *ngIf condition to false and then to true.
  3. Click on the marker.
  4. The info window renders mislocated.

Use switch foo button to change *ngIf condition.
http://plnkr.co/edit/UGzbxh3GDQDGDC8kwweX?p=preview

Current behavior
Info window is rendered mislocated.

Expected/desired behavior
Info window should be located just above the marker.

angular2 & angular2-google-maps version
angular 2.1.2
angular2-google-maps 0.16.0

@svarzee svarzee changed the title Info window doesn't work as expected with *ngIf Info window renders mislocated when used with *ngIf Nov 21, 2016
@svarzee
Copy link
Contributor Author

svarzee commented Nov 21, 2016

I believe I figured out how to fix it, I'll create a pull request soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant