Skip to content

Commit

Permalink
fix: Popover shift
Browse files Browse the repository at this point in the history
  • Loading branch information
MadCcc committed Sep 22, 2023
1 parent 51fc8dc commit 7c15c97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 22 deletions.
4 changes: 4 additions & 0 deletions components/_util/placements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,15 @@ export function getOverflowOptions(
case 'top':
case 'bottom':
baseOverflow.shiftX = arrowOffset.dropdownArrowOffset * 2 + arrowWidth;
baseOverflow.shiftY = true;
baseOverflow.adjustY = true;
break;

case 'left':
case 'right':
baseOverflow.shiftY = arrowOffset.dropdownArrowOffsetVertical * 2 + arrowWidth;
baseOverflow.shiftX = true;
baseOverflow.adjustX = true;
break;
}

Expand Down
22 changes: 0 additions & 22 deletions components/popover/demo/arrow-point-at-center.tsx

This file was deleted.

0 comments on commit 7c15c97

Please sign in to comment.