rebind popup when using setIcon to ensure proper popup anchor placement
Merge pull request #1891 from snkashis/seticon_and_popups

Rebind popup when using setIcon to ensure proper anchor placement