CdkConnectedOverlay does not reposition if its overlay origin changes
Bug, feature request, or proposal:
Bug
What is the expected behavior?
A connected overlay should reposition itself to the connected overlay origin when the overlay origin changed after the connected overlay was first displayed.
What is the current behavior?
The connected overlay does not reposition itself when its overlay origin changes, even if the overlay is detached before the origin changes and reattached after the origin has changed
What are the steps to reproduce?
https://stackblitz.com/edit/angular-9vet83?file=app%2Fapp.component.html
What is the use-case or motivation for changing an existing behavior?
A connected overlay could be reused for multiple overlay origins.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
angular/cdk: 5.0.4
Is there anything else we should know?
The CdkConnectedOverlay directive seems to only create a new overlay once, unless the overlay is completely destroyed. Listening to changes on the overlay origin and recreating the positioning strategy to connect to the new origin would probably solve the problem.
I can try to create a PR if this would be of any help.
Just want to add here, I have extended MatSelect and customized scss and html , example/code is working fine. but what I observed, when I resize browser , it still uses same top, left and width even though source readjusted based on layout/screen resize. I closed overlay and reopened but it still opening at original position.

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.