buildo / react-components

Collection of general React components used in buildo projects.
http://react-components.buildo.io/
MIT License
157 stars 21 forks source link

Popover: add logic to position it completely automatically #1023

Closed FrancescoCioria closed 7 years ago

FrancescoCioria commented 7 years ago

requirements

anchor="auto" is a good start, but we need the Dropdown to position itself completely automatically which means:

use position and anchor props as defaults in case there enough space for the Popover

specs

for now don't move the arrow dynamically as it complicates the logic a lot. instead search for a combination of postion+anchor that works:

misc

{optional: other useful info}