Added sample for popup positioning options

This is related to the fix for #775 which introduced new possibilities for popup positioning