mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
feat(overlay): add support for flexible connected positioning (#9153)
* Adds the `FlexibleConnectedPositionStrategy` that builds on top of the `ConnectedPositionStrategy` adds the following: * The ability to have overlays with flexible sizing. * Being able to push overlays into the viewport if they don't fit. * Having a margin between the overlay and the viewport edge. * Being able to assign weights to the overlay positions. * Refactors the `ConnectedPositionStrategy` to use the `FlexibleConnectedPositionStrategy` in order to avoid breaking API changes. * Switches all of the components to the new position strategy. * Adds an API to the `OverlayRef` that allows for the consumer to wrap the pane in a div. This is a common requirement between the `GlobalPositionStrategy` and the `FlexibleConnectedPositionStrategy`, and it's easier to keep track of the elements when the attaching and detaching is done in the `OverlayRef`. Fixes #6534. Fixes #2725. Fixes #5267.
This commit is contained in:
committed by
mmalerba
parent
57a5db6549
commit
27e5f6e3bc
@@ -100,6 +100,7 @@
|
||||
/src/demo-app/card/** @jelbourn
|
||||
/src/demo-app/checkbox/** @tinayuangao @devversion
|
||||
/src/demo-app/chips/** @tinayuangao
|
||||
/src/demo-app/connected-overlay/** @jelbourn @crisbeto
|
||||
/src/demo-app/dataset/** @andrewseguin
|
||||
/src/demo-app/datepicker/** @mmalerba
|
||||
/src/demo-app/demo-app/** @jelbourn
|
||||
|
||||
Reference in New Issue
Block a user