Fix a regression in popover and notification positioning (#14197, #14123, #13749)

Change-Id: Ieb578f89e031f27ae0fd91722e53c6170208f3c3