birdofpreyru/react-utils

<CustomDropdown> layout calcs should account for vertical margines

Closed this issue · 0 comments

const fitsDown = anchor.bottom + opsRect.height
< (window.visualViewport?.height ?? 0);
const fitsUp = anchor.top - opsRect.height > 0;

:point_up height values here do not include margins, if any... they should.