Fixes #1266 issue with right menu dropdown item direction