Skip to content

fix(docs): Automatic scrolling fails on screens smaller than 721px #31037

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

yousafravian
Copy link
Contributor

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 #26476

…e to flexbox behavior

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
@yousafravian yousafravian requested a review from a team as a code owner May 6, 2025 07:10
@yousafravian yousafravian requested review from crisbeto and andrewseguin and removed request for a team May 6, 2025 07:10
@angular-robot angular-robot bot added the area: docs Related to the documentation label May 6, 2025
@crisbeto crisbeto removed the request for review from andrewseguin May 6, 2025 08:55
@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release labels May 6, 2025
@crisbeto crisbeto merged commit 8cf7615 into angular:main May 6, 2025
10 of 12 checks passed
@crisbeto
Copy link
Member

crisbeto commented May 6, 2025

The changes were merged into the following branches: main, 19.2.x, 20.0.x

crisbeto pushed a commit that referenced this pull request May 6, 2025
…e to flexbox behavior (#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 #26476

(cherry picked from commit 8cf7615)
crisbeto pushed a commit that referenced this pull request May 6, 2025
…e to flexbox behavior (#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 #26476

(cherry picked from commit 8cf7615)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker area: docs Related to the documentation target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

docs-bug(cdkDrag): List examples' auto scroll is not working on devices narrower than 721px
2 participants