-
Notifications
You must be signed in to change notification settings - Fork 259
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
Display area slides after pagenation enabled while list runnning. #405
Comments
additional comments
|
IIUC there is a bug here when Lines 745 to 751 in 95d7be5
So, e.g. if we already have 5 items in the list and have height available for 5 items (pagination is currently not shown) and then do |
As a workaround, it seems that setting the correct height can be achieved by executing |
Describe the bug
I added items to list while list model running.
Then, display area slides 1 line to upper.
Selected item (or once selected items) is displayed properly.
Setup
Please complete the following information along with version numbers, if applicable.
To Reproduce
I little modify
bubbletea/example/list-sample/main.go
.This program appends items each 1 seccond.
When items overflow a page, the display area slides.
Source Code
This not run on go playground.
https://go.dev/play/p/RLjPz27-lxx
Expected behavior
Display area will not slide, and index will saved each additions.
Screenshots
The text was updated successfully, but these errors were encountered: