gitui-org / gitui-org/gitui

Text Box Scrolling Issue On Terminal Resize

Aperta
#2,149 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
Rust
Stelle
22.5k
Fork
773
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**Describe the bug**
Expanding the terminal window width causes the text within a scrolled text box to improperly adjust, leading to text disappearing from view instead of reflowing to accommodate the new width.

**To Reproduce**
Steps to reproduce the behaviour:
1. Navigate to any interface element that includes a vertical scrollbar, such as the 'Commit Message Details' window.
2. Decrease the terminal window's width and then scroll to the bottom of the text box.
3. Gradually increase the terminal window's width and observe the behavior of the text within the scrolled text box.
4. Notice that as the window width increases, the text starts to move upwards and eventually goes out of view.

**Expected behavior**
Upon expanding the terminal window's width, the text within a scrolled text box should reflow and adjust accordingly, maintaining the current view position while revealing more text or adjusting the text to fit the new width without losing the current focus point.

**Screenshots**
![Peek 2024-03-24 17-51](https://github.com/extrawurst/gitui/assets/31220038/eaf0b737-688f-4c1c-9dbc-2b873e06e904)

**Context:**
- OS/Distro + Version: `NixOS 24.05.20240319.b06025f (Uakari)`
- GitUI Version `0.25.1`
- Rust version: `1.75.0`

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.