bitovi / bitovi/canui

positionable: add containment

Open
#19 0 comments 0 reactions 0 assignees View on GitHub
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.