Skip to content

Commit

Permalink
fix(cdk/menu): disable flexible dimensions (#30086)
Browse files Browse the repository at this point in the history
Disables flexible dimensions for the CDK menu since supporting them properly requires some CSS tweaks and we don't control the CSS of the menu.

Fixes #30077.
  • Loading branch information
crisbeto authored Nov 27, 2024
1 parent d7fc560 commit 85d2639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cdk/menu/menu-trigger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ export class CdkMenuTrigger extends CdkMenuTriggerBase implements OnDestroy {
.position()
.flexibleConnectedTo(this._elementRef)
.withLockedPosition()
.withGrowAfterOpen()
.withFlexibleDimensions(false)
.withPositions(this._getOverlayPositions());
}

Expand Down

0 comments on commit 85d2639

Please # to comment.