-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(modal): cmpt based content was not scrollable (#3286)
In `5.0.0` we introduced the bootstrap scrollable content feature. This behaviour appears to be broken with modal that have content generated from a component. Overall styling is wrong, resulting in a broken modal not scrollable. The fix is adding some extra styling added via a CSS classname `component-host-scrollable`, in order to force the component host to fit inside the parent `.model-content` flex display. A complete different, and non-backward compatible fix will be provided in the next major release. Fixes #3281
- Loading branch information
Benoit Charbonnier
committed
Jul 17, 2019
1 parent
dd86266
commit ffbb4fd
Showing
4 changed files
with
37 additions
and
11 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
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
ngb-modal-window { | ||
.component-host-scrollable { | ||
display: flex; | ||
flex-direction: column; | ||
overflow: hidden; | ||
} | ||
} |
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