Popup: Ignore resize events right after a click

Closes gh-7323
Fixes gh-6961