Fixes #1457: set hidden popups to hide right instead of left