popover
popover copied to clipboard
Overlay positioning/anchoring issue on iOS
Reproduce-able at https://ncstate-sat.github.io/popover/ on an iOS device or using Simulator on a Mac.
This issue revolves around how iOS Safari has a dynamic bottom sheet within the mobile browser that hides when scrolling a page. It seems this event is not handled by the positioning service for the sat-popover, resulting in the overlay being positioned/anchored incorrectly and inconsistently if scrolling while popover is open.
Working:
Broken:
The same thing also happens for android devices after scrolling as the navigation bar at the top disappears
Yeah I'm afraid that's a problem in the cdk's overlay service (as I saw you noted in https://github.com/angular/material2/issues/9334).
I know the material folks have been looking into it for a while without much of an update (https://github.com/angular/material2/issues/6341), but if I can find some time, I'll try to dig into it as well.
@Shane-E the next patch release of the CDK should have a fix for this: https://github.com/angular/material2/pull/12119
This has been fixed.