everweij / react-laag

Hooks to build things like tooltips, dropdown menu's and popovers in React
https://www.react-laag.com
MIT License
907 stars 47 forks source link

Docs: autoAdjust logic description #28

Closed mtmacdonald closed 3 years ago

mtmacdonald commented 4 years ago

Is it possible to have some more documentation on the logic behind autoAdjust?

For example, how does it respond regarding container margins, padding, and different container overflow properties?

everweij commented 4 years ago

Good question! I'm planning to add a section to the documentation explaining the strategy behind the positional logic. Hopefully, this will clarify some things for people who want to use react-laag, and for people who are interested in contributing.

everweij commented 3 years ago

Hi @mtmacdonald , This issue has been open for almost a year now 😅. I've added a section to the readme yesterday covering this topic: https://github.com/everweij/react-laag#placement-priority If you have time, can you take a look it this, and tell me if it's clear enough? Thanks!

everweij commented 3 years ago

I'm closing this issue for now. If you want, you can re-open this issue any time or open a new one.

mtmacdonald commented 3 years ago

Sorry for the slow reply. I appreciate the v2 docs structure and this update - it's also much clearer now we don't have ToggleLayer and useToggleLayer. Thanks!