Skip to content

Commit

Permalink
Revert "Fix view height used for menu positioning JedWatson#5177
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwede committed Nov 30, 2022
1 parent 6bdd00c commit b2e804b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/react-select/src/components/Menu.tsx
Expand Up @@ -20,7 +20,6 @@ import {
getBoundingClientObj,
getScrollParent,
getScrollTop,
normalizedHeight,
scrollTo,
} from '../utils';
import {
Expand Down Expand Up @@ -84,9 +83,7 @@ export function getMenuPlacement({


const { top: containerTop } = menuEl.offsetParent.getBoundingClientRect();
const viewHeight = isFixedPosition
? window.innerHeight
: normalizedHeight(scrollParent);
const viewHeight = window.innerHeight;
const scrollTop = getScrollTop(scrollParent);

const marginBottom = parseInt(getComputedStyle(menuEl).marginBottom, 10);
Expand Down

0 comments on commit b2e804b

Please sign in to comment.