positionable: add containment
- Dominant language
- JavaScript
- Stars
- 28
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Description
I think there should be a way to pass a container element that will limit position with its borders (besides window). the Option may be called containment.
And I actually don't understand logic behind code:
positinable.js (367):
within = $(isEvent || !options.of ? window : options.of),
in what case does within limitation works?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with positionable.js around line 367 and trace how options.of determines the current positioning boundary. Clarify how a containment option should accept a container element and define the expected edge behavior, then verify that positioning is limited by the container rather than only the window.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100