If a popover button is very close to the window border the triangle doesn't draw centered on the button. This is to prevent the triangle from being placed over a rounded popover corner. It is preferable to align the triangle with the popover button, so this patch makes two changes to more consistently align the triangle.
- Allow the triangle to be aligned with the edges of the popover
- If the triangle is over a corner, don't round that corner
In cases where the triangle cannot be placed near the button (when the button is partially outside the window) the triangle is now aligned as close as possible to the button.
| Before | After |














