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.

(cherry picked from commit 85d2639)
  • Loading branch information
crisbeto committed Nov 27, 2024
1 parent 08c4fd6 commit 6306a12
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 6306a12

Please sign in to comment.