gitui-org / gitui-org/gitui

Text Box Scrolling Issue On Terminal Resize

Ouverte
#2,149 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
bug
Langage dominant
Rust
Étoiles
22.5k
Forks
773
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

**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`

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par reproduire le comportement lors du redimensionnement dans la fenêtre Commit Message Details, en suivant les étapes indiquées avec une zone de texte défilée verticalement. Suivez la gestion du redimensionnement et du défilement de la zone de texte, puis vérifiez que l’élargissement du terminal préserve le point de focus actuel et garde le texte visible.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
rust
Domaine
cli
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.