Fixes #4361: Fix Directive popup on Chrome

http://www.rudder-project.org/redmine/issues/4361