class_name ScrollToEndContainer extends ScrollContainer ## A scroll container that scrolls to the end whenever its content grows, so the newest ## item is always in view. var max_value: float = 0.0 func _draw() -> void: if max_value != get_v_scroll_bar().max_value: max_value = get_v_scroll_bar().max_value scroll_vertical = int(max_value)