mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[PR #727] [MERGED] Fix the DropDown list when too close to the right screen edge #1028
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#1028
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/rivo/tview/pull/727
Author: @dimonomid
Created: 4/24/2022
Status: ✅ Merged
Merged: 11/13/2022
Merged by: @rivo
Base:
master← Head:dropdown-hor-alignment-fix📝 Commits (1)
14200b5Fix the DropDown list when too close to the right screen edge📊 Changes
1 file changed (+10 additions, -2 deletions)
View changed files
📝
dropdown.go(+10 -2)📄 Description
There was a bug: DropDown always aligns the left edge of selection list and the main widget, but when the widget is too close to the right screen edge, the list ends up being drawn only partially. See screenshot: here, "Menu" is the dropdown:
This is how it looks after the fix:
When there is enough room on the right side, dropdown list is drawn exactly as it used to.
Fixes #726.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.