This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(drawer): Fixes an issue of width-drift when closing the drawer.
With a lot of content in the drawer-content, the drawer-body was changing size due to the flex container around it. Keeping track of the width when closing and setting it as a min and max width boundary, keeps the drawer-body from relayouting and prevents the drift. Fixes APM-266068
- Loading branch information
Showing
3 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
<div class="dt-drawer-body"> | ||
<div | ||
class="dt-drawer-body" | ||
[style.min-width.px]="_closedWidth" | ||
[style.max-width.px]="_closedWidth" | ||
> | ||
<ng-content></ng-content> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters