Skip to content

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

Open
jezer07 wants to merge 3 commits intoSebastienBtr:mainfrom
jezer07:main
Open

Bug Fix: Show mention OverlayEntry to relative to Overlay#109
jezer07 wants to merge 3 commits intoSebastienBtr:mainfrom
jezer07:main

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