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

Fix minimum size growing but not shrinking #77568

Closed
wants to merge 1 commit into from

Conversation

Rindbee
Copy link
Contributor

@Rindbee Rindbee commented May 28, 2023

For control in auto/smart mode, its minimum size may be related to the size of the parent container. Multiple consultations are required to determine the minimum size.

If data.minimum_size_valid is still false after calling get_combined_minimum_size(). This usually means that consultations are still required.

Fix #74052. There may be a better solution.

For control in auto/smart mode, its minimum size may be related to the size of the parent
container. Multiple consultations are required to determine the minimum size.

If `data.minimum_size_valid` is still `false` after calling `get_combined_minimum_size()`.
This usually means that consultations are still required.
if (data.minimum_size_cache != minsize) {
size_changed = true;
}
data.minimum_size_valid = true; // Reset to true anyway.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally, update_minimum_size() would only be called when the minimum size has changed, but in reality the minimum size may not have changed.

@Rindbee Rindbee marked this pull request as ready for review May 28, 2023 10:16
@Rindbee Rindbee requested a review from a team as a code owner May 28, 2023 10:16
@Rindbee Rindbee closed this May 28, 2023
@Rindbee Rindbee deleted the auto-grow-and-shrink branch June 2, 2023 12:43
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.

Label + [autowrap] in VBoxContainer changes its size at startup (like line_spacing)
2 participants