File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ export class CdkContextMenuTrigger extends CdkMenuTriggerBase implements OnDestr
154
154
private _getOverlayConfig ( coordinates : ContextMenuCoordinates ) {
155
155
return new OverlayConfig ( {
156
156
positionStrategy : this . _getOverlayPositionStrategy ( coordinates ) ,
157
- scrollStrategy : this . _overlay . scrollStrategies . block ( ) ,
157
+ scrollStrategy : this . _overlay . scrollStrategies . reposition ( ) ,
158
158
direction : this . _directionality ,
159
159
} ) ;
160
160
}
@@ -169,6 +169,8 @@ export class CdkContextMenuTrigger extends CdkMenuTriggerBase implements OnDestr
169
169
return this . _overlay
170
170
. position ( )
171
171
. flexibleConnectedTo ( coordinates )
172
+ . withLockedPosition ( )
173
+ . withGrowAfterOpen ( )
172
174
. withPositions ( this . menuPosition ?? CONTEXT_MENU_POSITIONS ) ;
173
175
}
174
176
Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ export class CdkMenuTrigger extends CdkMenuTriggerBase implements OnDestroy {
240
240
private _getOverlayConfig ( ) {
241
241
return new OverlayConfig ( {
242
242
positionStrategy : this . _getOverlayPositionStrategy ( ) ,
243
- scrollStrategy : this . _overlay . scrollStrategies . block ( ) ,
243
+ scrollStrategy : this . _overlay . scrollStrategies . reposition ( ) ,
244
244
direction : this . _directionality ,
245
245
} ) ;
246
246
}
@@ -250,6 +250,8 @@ export class CdkMenuTrigger extends CdkMenuTriggerBase implements OnDestroy {
250
250
return this . _overlay
251
251
. position ( )
252
252
. flexibleConnectedTo ( this . _elementRef )
253
+ . withLockedPosition ( )
254
+ . withGrowAfterOpen ( )
253
255
. withPositions ( this . _getOverlayPositions ( ) ) ;
254
256
}
255
257
You can’t perform that action at this time.
0 commit comments