Separate arrow coordinate calculations from CGPath stuff
Remove arrow shrinking
Change demo to show popover relative to button bounds
Add popover anchor point and didOffsetFrame properties to RBLBackgroundView
Flip the edge if the proposed rect for the preferred edge is offscreen
Merge remote-tracking branch 'origin/master' into popover-edge-fixes
Just set ivar
style
Replace M_PI / 2 with M_PI_2
Replace NSMax uses with maxX, maxY
Clean up popover path calculations
Use next edge if screen rect doesn't contain the preferred edge
Dont use midOriginY
Calculate based on window visible frame
Dont forget to set else case
Position positioningRect using -alignmentRectForFrame:
Go back to using the median x and y to calculate mid origin x and y
Remove -didOffsetFrame
Remove -popoverAnchorPoint
No need to set the popoverEdge again