X Tutup
Skip to content

Fix TextEdit does not auto scroll properly on certain vertical sizes#113390

Merged
akien-mga merged 1 commit intogodotengine:masterfrom
X1Vi:text-edit-does-not-auto-scroll-113290
Dec 12, 2025
Merged

Fix TextEdit does not auto scroll properly on certain vertical sizes#113390
akien-mga merged 1 commit intogodotengine:masterfrom
X1Vi:text-edit-does-not-auto-scroll-113290

Conversation

@X1Vi
Copy link
Contributor

@X1Vi X1Vi commented Dec 1, 2025

Closes #113290

This issue fixes the text edit that it doesn't scroll all the way to the bottom under certain sizes.

I am attaching some examples that I used to reproduce and fix the issue.

Unfixed Build

Screencast.from.2025-12-01.15-51-13.webm

Fixed Build

Screencast.from.2025-12-01.15-51-35.webm

Fixed With Scrollbar Range

Screencast.from.2025-12-01.16-43-16.webm

@X1Vi X1Vi requested a review from a team as a code owner December 1, 2025 10:35
@sockeye-d
Copy link
Contributor

I believe rounding is the correct behavior as it allows for line-perfect scrolling? I think a different approach will be necessary

@X1Vi
Copy link
Contributor Author

X1Vi commented Dec 1, 2025

I believe rounding is the correct behavior as it allows for line-perfect scrolling? I think a different approach will be necessary

Can you explain about rounding in more detail I might be able to fix it .

@bruvzg
Copy link
Member

bruvzg commented Dec 1, 2025

Rounding was added in #73502

@AThousandShips AThousandShips added this to the 4.6 milestone Dec 1, 2025
@AThousandShips AThousandShips changed the title fix: now text_edit should scroll all the way to the bottom when the … Fix TextEdit does not auto scroll properly on certain vertical sizes Dec 1, 2025
@AThousandShips AThousandShips added the cherrypick:4.5 Considered for cherry-picking into a future 4.5.x release label Dec 1, 2025
@X1Vi
Copy link
Contributor Author

X1Vi commented Dec 1, 2025

@bruvzg and @sockeye-d now it is fixed with range of the scrollbar, I think this was that you guys were expecting ?

Look at the third video from top

@bruvzg bruvzg self-requested a review December 1, 2025 11:21
@X1Vi
Copy link
Contributor Author

X1Vi commented Dec 1, 2025

I think some of the tests are failing due to the new logic for the adjustment of the scrollbar

@X1Vi
Copy link
Contributor Author

X1Vi commented Dec 1, 2025

@bruvzg if you need any other changes don't hesitate to ping me

@AThousandShips
Copy link
Member

I think some of the tests are failing due to the new logic for the adjustment of the scrollbar

You will need to adjust the tests to account for these changes, or the changes need to be adjusted to not cause the tests to fail, the tests failing would indicate that this breaks some expected behavior though

@X1Vi X1Vi requested a review from a team as a code owner December 2, 2025 12:51
Copy link
Member

@bruvzg bruvzg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to be working as expected.

Please squash the commits, see The interactive rebase.

@X1Vi X1Vi force-pushed the text-edit-does-not-auto-scroll-113290 branch from 7294820 to bfaa6e2 Compare December 12, 2025 12:49
fix: now the scrollbar also should work within the range it is provided

adjusted the tests according to the new scrollbar functinality

attempted to fix testcases for scrollbar
@X1Vi X1Vi force-pushed the text-edit-does-not-auto-scroll-113290 branch from bfaa6e2 to 442c117 Compare December 12, 2025 13:03
@X1Vi
Copy link
Contributor Author

X1Vi commented Dec 12, 2025

@bruvzg I think its done I mean the squashing now there is only one commit for everything.

@akien-mga akien-mga merged commit e7d8609 into godotengine:master Dec 12, 2025
20 checks passed
@akien-mga
Copy link
Member

Thanks! And congrats for your first merged Godot contribution 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TextEdit does not auto scroll properly on certain vertical sizes

5 participants

X Tutup