Force Pickr to Always Open Below the Button
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 4.5k
- Forks
- 292
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
First of all, thank you for this amazing library!
I’m currently using Pickr in my project, and I’m trying to make it always open directly below the button (or element) specified in the el parameter, regardless of the available screen space. I’ve tried using the position parameter with values like bottom-middle, but sometimes it still adjusts its position based on the viewport.
Could you please guide me on how to force Pickr to always open below the button without adjusting? Is there a built-in way to achieve this, or would I need to manually handle positioning using custom JavaScript?
Thank you in advance for your help!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are named in the issue. Start by locating Pickr's positioning-option handling and the viewport adjustment behavior, then verify whether a below-button mode can bypass that adjustment without breaking other placements or small-screen behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100