themesberg / themesberg/flowbite-react
Dropdown renders relative to viewport when zooming, not its place on the page
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.1k
- Forks
- 506
- PR merge metrics
- No merged PRs in 30d
Description
- I have searched the Issues to see if this bug has already been reported
- I have tested the latest version
Steps to reproduce
- Add a
FlowbiteDropdownwith items - Open the dropdown
- Zoom into a place on the screen that is away from the dropdown
Current behavior
The dropdown remains on the screen and increases in size, positioned where it was in "normal zoom"
Expected behavior
The dropdown remains the same size and same position
Context
What are you trying to accomplish? Does this only happen on a specific browser, screen size, or operating system?
Tested Chrome, Firefox, Safari
If possible, provide a live example URL, screenshot, video, or a repository with the minimal reproduction of the issue.
https://github.com/themesberg/flowbite-react/assets/40029643/ef3734d5-fa8e-4c7c-a29e-efb0f8efbda2
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
Start from the FlowbiteDropdown implementation and reproduce the issue using the listed Chrome, Firefox, and Safari steps, including zooming away from the open dropdown. Trace how the dropdown position and size are calculated; done means it stays at its page position and keeps its size while zooming.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100