-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
scroll_to_line does not work while scroll active is disabled #36134
Comments
Are you using func _ready():
$RichTextLabel.scroll_to_line(4) I've tried to replicate it - and even I've disabled scrolling, I am still able to offset it with above code. |
Im changing the line on a timer timeout
Heres a video, the list of times/deaths would scroll down until it reached the end then reset and 'credits' would scroll up the bottom area on the previous version of Godot. Was functioning fine before i updated :x hope i'm not making a silly mistake here now ive posted this. |
The issue comes when Scroll Active in Rich Text Label is set false (when scroll bar is hidden) the on hover message for Scroll Active says if false 'does not block scrolling completely. see scroll_to_line' https://streamable.com/37hl6 |
OK, I've got it now. It was actually connected with other issue reported back then - please go to my PR to find out more :) |
EDIT: |
Fix godotengine#36134 (cherry picked from commit 8f11a91)
Fix godotengine#36134 (cherry picked from commit 8f11a91)
(3.2.stable.official) For Rich Text Label, If scroll_active is False, scroll_to_line(n) does not scroll to the line number given. Despite the on hover message for Scroll Active in the Inspector saying 'Setting this to false does not block scrolling completely. See scroll_to_line()'
The text was updated successfully, but these errors were encountered: