diff --git a/doc/classes/ScrollContainer.xml b/doc/classes/ScrollContainer.xml
index 65814d4359d..cfc4ca6b4fe 100644
--- a/doc/classes/ScrollContainer.xml
+++ b/doc/classes/ScrollContainer.xml
@@ -52,13 +52,23 @@
Deadzone for touch scrolling. Lower deadzone makes the scrolling more sensitive.
- The current horizontal scroll value.
+ The current horizontal scroll value.
+ [b]Note:[/b] If you are setting this value in the [method Node._ready] function or earlier, it needs to be wrapped with [method Object.set_deferred], since scroll bar's [member Range.max_value] is not initialized yet.
+ [codeblock]
+ func _ready():
+ set_deferred("scroll_horizontal", 600)
+ [/codeblock]
Overrides the [member ScrollBar.custom_step] used when clicking the internal scroll bar's horizontal increment and decrement buttons or when using arrow keys when the [ScrollBar] is focused.
The current vertical scroll value.
+ [b]Note:[/b] Setting it early needs to be deferred, just like in [member scroll_horizontal].
+ [codeblock]
+ func _ready():
+ set_deferred("scroll_vertical", 600)
+ [/codeblock]
Overrides the [member ScrollBar.custom_step] used when clicking the internal scroll bar's vertical increment and decrement buttons or when using arrow keys when the [ScrollBar] is focused.