Skip to content

Commit

Permalink
chore: allow browsers that don't support :top-layer to use clipping a…
Browse files Browse the repository at this point in the history
…ncestors fallback for flip positioning
  • Loading branch information
DRiFTy17 committed Feb 9, 2024
1 parent 0403f4e commit 466c1eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/overlay/overlay-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export class OverlayAdapter extends BaseAdapter<IOverlayComponent> implements IO
},
flip: flip !== 'never',
flipOptions: {
boundary: document.body, // We ensure flip boundaries are always the viewport
boundary: SUPPORTS_POPOVER ? document.body : 'clippingAncestors',
fallbackStrategy: 'initialPlacement',
fallbackPlacements: fallbackPlacements ?? OVERLAY_FALLBACK_PLACEMENT_MAP[placement] ?? DEFAULT_FALLBACK_PLACEMENTS,
crossAxis: flip === 'cross' || flip === 'auto',
Expand Down

0 comments on commit 466c1eb

Please sign in to comment.