Change popover auto right placement to use container right offset instead of container width

Fixes #15367