If we intend for the MatBottomSheet
to appear with its top aligned perfectly against the top toolbar, what is the most effective approach to achieve this? Refer to the demo provided in the documentation.
In this stackblitz example, assuming a height of 40px for the top toolbar, I have set the height
of the HelloComponent
displayed by the MatBottomSheet
to be 100%
with a top margin of 40px
. However, this didn't prevent it from overlapping with the toolbar as expected.
What methods can be used to style the container of the MatBottomSheet
? I also attempted:
.mat-bottom-sheet-container {
min-height: 100%;
margin-top: 40px;
}
Perhaps this will provide the desired result:
.mat-bottom-sheet-container {
min-height: vh;
margin-top: 40px;
}
Does anyone have insights on why min-height: 100%
did not yield the desired outcome?