themesberg / themesberg/flowbite-react

Dropdown renders relative to viewport when zooming, not its place on the page

Open
#897 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

:bug: bug confirmed help wanted
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

  1. Add a FlowbiteDropdown with items
  2. Open the dropdown
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.