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

TextArea.ScrollToStart/End fixes #2712

Merged

Conversation

cwensley
Copy link
Member

This makes TextArea.ScrollToStart() and ScrollToEnd() consistent across platforms, and now horizontally scrolls to the left, center, or right depending on the current TextAlignment for the control.

This also fixes a bug on Mac where it would not scroll properly after changing the text, so it ensures the text has had its layout pass before scrolling.

On Mac/Gtk it previously scrolled to wherever the last/first character was, whereas on WinForms/WPF it would always set the horizontal scroll to 0/left.

This should also theoretically work better for RTL if enabled natively.

@cwensley cwensley added this to the 2.8.4 milestone Dec 10, 2024
@cwensley cwensley merged commit 4c99da5 into picoe:develop Dec 10, 2024
3 checks passed
@cwensley cwensley deleted the curtis/mac-textarea-scrolltoend-fixes branch December 10, 2024 22:28
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.

1 participant