Skip to content

Commit 8cf7615

Browse files
authored
fix(docs): Automatic scrolling fails on screens smaller than 721px due to flexbox behavior (angular#31037)
Fixes a flexbox issue where if a flex item has `flex-basis: auto` and `min-height: auto`, it exceeds the height of its flex parent. Consequently, when `scrollBy` is called by `scrollDetector` in `drop-list-ref.ts`, the container is not scrollable because its height is determined by its content. Removing `min-height: auto` forces the flex item to match the height of its flex parent, allowing `scrollBy` to function correctly. Fixes angular#26476
1 parent cfa97bb commit 8cf7615

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/app/pages/component-sidenav/component-sidenav.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ div.docs-component-viewer-nav-content .mat-nav-list .mat-mdc-list-item .mat-list
117117

118118
@media (max-width: 720px) {
119119
.docs-component-viewer-sidenav-container {
120-
flex: 1 0 auto;
120+
flex: 1 0;
121121
}
122122

123123
.docs-component-sidenav-body-content {

0 commit comments

Comments
 (0)