Fixes #4361: Fix Directive popup on Chrome
Merge pull request #421 from VinceMacBuche/bug/4381/chrome_popup_directive

Fixes #4361: Fix Directive popup on Chrome