docs-bug(cdk/menu): menu items overflow outside the menu as it exits the viewport when scrolling #30077
Labels
area: cdk/menu
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Documentation Feedback
The examples in the CDK Menu docs are broken because the menu shrinks as it leaves the viewport while scrolling, causing the menu items to overflow.
Steps to reproduce:
This happens in all positions of the menu but it is noticeable when the menu opens above the trigger (see attached gif)
Is the intended behavior to shrink the menu or is it supposed to leave the screen?
overflow: auto
to the menu's CSS so that the items don't overflow outside of it.withFlexibleDimensions(false)
to the overlay’s position strategy.Affected documentation page
https://material.angular.io/cdk/menu/examples
The text was updated successfully, but these errors were encountered: