Popup: Ignore resize events right after a click

(cherry picked from commit 5342dfd16fcce0e35eb5ce666ebab6f5bd2e95f6)

Closes gh-7323
Fixes gh-6961