gitui-org / gitui-org/gitui

Text Box Scrolling Issue On Terminal Resize

Đang mở
#2,149 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Rust
Star
22.5k
Fork
773
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện hành vi thay đổi kích thước trong cửa sổ Commit Message Details, sử dụng các bước đã báo cáo với một hộp văn bản đã được cuộn theo chiều dọc. Theo dõi cách xử lý việc thay đổi kích thước và cuộn của hộp văn bản, sau đó xác minh rằng việc mở rộng terminal vẫn giữ nguyên điểm lấy nét hiện tại và giữ cho văn bản hiển thị.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
rust
Lĩnh vực
cli
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.