Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Fix: Show mention OverlayEntry to relative to Overlay #109

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jezer07
Copy link

@jezer07 jezer07 commented Jul 29, 2024

Issue:
If there is an Overlay widget near DashChat on the widget hierarchy that only covers a portion of the screen, when the mention OverlayEntry shows up, it gets misplaced.

See the mention OverlayEntry sitting way up the screen
Screenshot 2024-07-30 at 1 13 22 AM

Steps to Reproduce:

  1. Download and run this project example.zip
  2. In the source code, notice the Overlay widget as a parent of DashChat and its bounds is only the body of the Scaffold
  3. In the app, Go to Mentions Example
  4. Trigger the mention dialog by typing @
  5. Notice the misplaced dialog

Proposed Solution
Base the offset of the mention OverlayEntry relative to the nearest Overlay bounds

@jezer07 jezer07 marked this pull request as ready for review July 29, 2024 17:48
@jezer07 jezer07 changed the title Show mention OverlayEntry to relative to Overlay Bug Fix: Show mention OverlayEntry to relative to Overlay Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant