charmbracelet / charmbracelet/bubbles

Viewport scrolling results in rendering artifacts

Open
#454 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
8.9k
Forks
457
Avg merge
1d 18h
Merged PRs (30d)
5

Description

**Describe the bug**
When I put a viewport next to a listview, and press `j` once, I get scrolling artifacts visible in the viewport.

**Setup**
Please complete the following information along with version numbers, if applicable.
- OS: macOS
- Shell: zsh
- Terminal Emulator: iTerm 2
- Terminal Multiplexer: None
- Locale: en_US.UTF-8

**To Reproduce**
Steps to reproduce the behavior:
1. Clone https://github.com/benwaffle/bubbletea-viewport-bug
2. Run `go run .`
3. Press `j`

**Source Code**
https://github.com/benwaffle/bubbletea-viewport-bug

**Expected behavior**
No rendering artifacts.

**Screenshots**
![output](https://github.com/charmbracelet/bubbles/assets/1713819/9a92c4dc-c06d-47be-a3fb-9253892c2cb7)

**Additional Details**
Changing the `panelStyle` margin to 0 seems to get rid of the issue.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.