Skip to content
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

Text Box Scrolling Issue On Terminal Resize #2149

Open
MichaelAug opened this issue Mar 24, 2024 · 0 comments
Open

Text Box Scrolling Issue On Terminal Resize #2149

MichaelAug opened this issue Mar 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@MichaelAug
Copy link
Contributor

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

Context:

  • OS/Distro + Version: NixOS 24.05.20240319.b06025f (Uakari)
  • GitUI Version 0.25.1
  • Rust version: 1.75.0
@MichaelAug MichaelAug added the bug Something isn't working label Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant