This repository was archived by the owner on Mar 5, 2023. It is now read-only.
1.0.0-beta.3
Pre-release
Pre-release
·
8 commits
to master
since this release
Added
- Placement.js now accounts for nesting within positioned elements. The overlay should be positioned correctly no matter where it is.
- If the overlay is a descendant of a scroll container, its position will be bounded automatically so it doesn't overflow the container.
Changed
- New API:
- The module now exports the
placefunction instead of adefaultexport. - The order of the
anchorandoverlayarguments is swapped. - The
sideandalignparameters have been combined into a singleplacementoption.
- The module now exports the
- Smaller filesize. Now ~800 bytes!
- Updated demo – use the mouse to directly manipulate the anchor and overlay elements.
Removed
- Margins are no longer subtracted when positioning the overlay. Instead, add margins selectively depending on the
[data-placement]attribute selector. - Removed the
fixedoption. - Removed the
boundoption. - Removed the ability to specify
CoordinatesorRangeas the anchor.