From 6306a12c12ee0c255e20dfb9be78076f880120bf Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Wed, 27 Nov 2024 14:59:51 +0100 Subject: [PATCH] fix(cdk/menu): disable flexible dimensions (#30086) 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. (cherry picked from commit 85d26391e4a3ea7228b7d5104c697ac9ab4d40d8) --- src/cdk/menu/menu-trigger.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cdk/menu/menu-trigger.ts b/src/cdk/menu/menu-trigger.ts index 4122b94a8109..36025000baf4 100644 --- a/src/cdk/menu/menu-trigger.ts +++ b/src/cdk/menu/menu-trigger.ts @@ -259,7 +259,7 @@ export class CdkMenuTrigger extends CdkMenuTriggerBase implements OnDestroy { .position() .flexibleConnectedTo(this._elementRef) .withLockedPosition() - .withGrowAfterOpen() + .withFlexibleDimensions(false) .withPositions(this._getOverlayPositions()); }