Expose ItemList's auto height value with get_auto_height_value
#70034
+170
−133
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Relies on #63634
Addresses godotengine/godot-proposals#254 with a more explicit call alongside #63634, as
custom_minimum_size
may hide the auto height value. This makes reliance on the auto height value more explicit for calculations, however since nothing yet forces theauto_height_value
to update regardless ofauto_height
, technically #63634 (comment) still presents a bit of an issue, as the return value here will just be from the last timeauto_height
was true or otherwise it'll return 0, perhaps it would be justified to implement:With such, an
update_auto_height
call could force theauto_height_value
to update even ifauto_height
is false as it currently does not allow the user to do so. As it stands the usefulness of this PR is quite limited and only really good for being explicit and avoidingcustom_minimum_size
.Exposed Additions
ItemList: