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

fix(viewport): scroll to last line when borders #706

Merged
merged 1 commit into from
Jan 21, 2025
Merged

Conversation

caarlos0
Copy link
Member

If the viewport has borders, they are not currently taken into account when calculating the viewport max y offset, which might cause the last line to not be visible.

This is easily reproducible in gum pager.

If the viewport has borders, they are not currently taken into account
when calculating the viewport max y offset, which might cause the last
line to not be visible.

This is easily reproducible in `gum pager`.

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
@caarlos0 caarlos0 added the bug Something isn't working label Jan 21, 2025
@caarlos0 caarlos0 self-assigned this Jan 21, 2025
@caarlos0 caarlos0 requested a review from meowgorithm as a code owner January 21, 2025 20:20
@caarlos0 caarlos0 merged commit 7ab08fb into master Jan 21, 2025
26 checks passed
@caarlos0 caarlos0 deleted the viewport-scroll branch January 21, 2025 22:31
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

Successfully merging this pull request may close these issues.

2 participants